java: how to convert a file to utf8
        Posted  
        
            by Enrique San Martín
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Enrique San Martín
        
        
        
        Published on 2010-06-10T21:25:28Z
        Indexed on 
            2010/06/10
            21:42 UTC
        
        
        Read the original article
        Hit count: 335
        
Hi, i have a file that have some non-utf8 caracters (like "ISO-8859-1"), and so i want to convert that file (or read) to UTF8 encoding, how i can do it?
The code it's like this:
File file = new File("some_file_with_non_utf8_characters.txt");
/* some code to convert the file to an utf8 file */
...
edit: Put an encoding example
© Stack Overflow or respective owner