Results 1 to 2 of 2
- 07-23-2007, 05:32 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 32
- Rep Power
- 0
- 08-06-2007, 03:48 AM #2
Member
- Join Date
- Jul 2007
- Posts
- 41
- Rep Power
- 0
if the content of the foo.txt file is a collection of ISO8859-1 characters:
Read them lines into an ArrayList. Then,Java Code:BufferedReader br = new BufferedReader (new InputStreamReader(new FileInputStream("foo.txt"), "ISO8859_1"));
would overwrite the foo.txt with UTF-8 characters.Java Code:PrintWriter pw = new PrintWriter("foo.txt", "UTF8");
Similar Threads
-
How to send email with specific Content-Transfer-Encoding?
By ally in forum Advanced JavaReplies: 1Last Post: 09-27-2008, 01:42 AM -
Some help with encoding...
By nm123 in forum NetworkingReplies: 0Last Post: 04-15-2008, 12:22 AM -
Missing text encoding
By talgreen in forum EclipseReplies: 0Last Post: 03-30-2008, 08:14 PM -
Xml Parse throws SaxParseException. Encoding is UTF-8 insteadof ISO-8859-1 ?
By j_kathiresan in forum XMLReplies: 1Last Post: 03-28-2008, 05:08 PM -
Convert my class file into a exe file
By carl in forum New To JavaReplies: 1Last Post: 08-05-2007, 08:35 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks