Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading a us-ascii file  RSS feed

 
Maselo Snazz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to read a file thats encoded in a us-ascii format now i am trying to convert this file into UTF-8 format and read it using the FileInputStreamReader and displaying the data in a Jtable.
How can i convert the file ?

Please help!
Thanx
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot of text editors these days have the option of saving in UTF-8. If you want to do it programmatically, you can read it using ASCII, then write it using UTF-8.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!