Reading and writing files character encoding
"Tony Spencer" <[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am attempting to read a simple XML feed over HTTP and write it to my local disk. The feed has some spanish in it so there are non-US characters present. Currently I use a BufferedReader and InputStream to read the feed and I write it to disk with FileWriter. The problem is that the non-US characters (such as the second character in this provice http://en.wikipedia.org/wiki/Malaga) are mangled in the local copy that is written. Can someone explain how to deal with different character encodings in cases such as this? Do you need to know the encoding of the content you are receiving? Thanks, Tony _______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org