In Java 6,
System.out.println(String.valueOf('u0130').toLowerCase());
prints i (u0069
), but in Java 7 it prints i with double dots (u0069 u0307
).
I understand it is a Turkish character, but how do I make Java 7 print the same output as v6 using this code?
System.out.println(inputText.toLowerCase());
Also make sure that the code can handle international text without hardcoding the toLowerCase
function to use only Turkish locale.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…