display accents - character encoding

edited April 2016 in How To...

Hello I retrieve strings like this Hlaváč from a database and I want to display it like this Hlaváč.

Do you know how to do it ?



  • Answer ✓

    I nailed it :

    try {
            s = new String(s.getBytes("iso-8859-1"), "UTF-8");
    } catch (IOException ie) {
Sign In or Register to comment.