E
eduardo.rosa
Hi people
I need some help to a problem that's make me loose my mind.
When I try to convert toLowerCase a string, all latin characters turns
to trash...
I tried to convert using String(byte[] bytes, String enc) and
getBytes(String enc) and nothing...
thanks a for any help.
the test class, utf-8 file:
public class StringUtil
{
public static String convertLatin( String s )
{
return s.toLowerCase();
}
}
the test calling class, also utf-8 file:
public class TestConvert
{
public String novoItem( final String novo ) /* thats novo String is
utf-8 */
{
return StringUtil.convertLatin( novo );
}
}
I need some help to a problem that's make me loose my mind.
When I try to convert toLowerCase a string, all latin characters turns
to trash...
I tried to convert using String(byte[] bytes, String enc) and
getBytes(String enc) and nothing...
thanks a for any help.
the test class, utf-8 file:
public class StringUtil
{
public static String convertLatin( String s )
{
return s.toLowerCase();
}
}
the test calling class, also utf-8 file:
public class TestConvert
{
public String novoItem( final String novo ) /* thats novo String is
utf-8 */
{
return StringUtil.convertLatin( novo );
}
}