How can I add UTF-8 Strings into a JTable? Strings in the ASCII range look ok, but characters that have accents aren't showing up properly.
I was reading in the strings without setting the reader to a UTF-8 encoding. After changing
BufferedReader br = new BufferedReader(new InputStreamReader(di));
to
BufferedReader br = new BufferedReader(new InputStreamReader(di, "UTF-8"));
the text showed up correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With