嗨,我想将 unicode 值“\u20BA”转换为土耳其等效字符串。有人可以帮我吗?
我使用了以下代码:
try {
String string = "\u20BA";
System.out.println(string + " " + string.toLowerCase());
// Locale.setDefault(new Locale("tr"));
// Locale tr = new Locale("TR","tr");
byte[] converttoBytes = string.toLowerCase().getBytes("UTF-8");
string = new String(converttoBytes, "Cp1254");
System.out.println(string + " " + string.toLowerCase());
} catch (Exception e) {
e.printStackTrace();
}