encoding 2 « Development « Java I/O Q&A





1. Java.io unsupported encoding exception??    forums.oracle.com

Hi. I've been having this problem with a program I am writing which is supposed to encode a file from Cp1256 to UTF-8. The problem is that java keeps giving me an unsupported encoding exception for CP1256. Is there a way that I can perhaps "integrate" this encoding into my JDK? Thanks in advance!

2. Writing to file with specific encoding in unix    forums.oracle.com

hi, I want to write html files which contain Turkish characters in unix operating system. I'm currently using FileWriter to write the files. I'm getting the file content from the database and I can see that the characters seem to be fine but when I write them into an html file, they are displayed with the question mark character (?). What ...

3. Error in file name encoding on OS X    forums.oracle.com

6. How To: Get encoding of a remote file    forums.oracle.com

How To: Get encoding of a remote file Java EE URL url = new URL ("http://www.someSite.com/myCsvFile.csv"); // comma separated InputStream is = url.openConnection().getInputStream(); InputStreamReader reader = new InputStreamReader(is); System.out.println("reader.getEncoding(): " + reader.getEncoding()); For both an ISO-8859-1 file and a UTF-8 file I get the following print out: ############################################# reader.getEncoding(): Cp1252 ############################################# Could it have something to do with this warning during ...