Reputation: 315
I got a problem with this symbol — (not -). When I use tolowercase()
function, it shows ���. I don't know how to fix this. Please help. Thank you.
public String content = "noise—tap, tap—plash, plash—as";
this.content = this.content.toLowerCase();
System.out.println(this.content);
Output: noise���tap, tap���plash, plash���as
Upvotes: 3
Views: 257
Reputation: 14541
The output in your case depends on three things.
Edit: I'd guess that 3. is the most likely culprit. You can look at the system property file.encoding
for confirmation.
Upvotes: 5