This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Text Conversion between UTF-8 & ISO 8859-1

 
Usman Riaz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi *!
I have a web-application. The Frontend allows the user to upload a file (a csv file, containing some data). The frontend gets the file and puts the file into a String. Now the problem is the file can be using UTF8 encoding or ISO & normally it contains umlauts chars (above 127 code point) that are mapped differently on different code pages. Is there a way i can find the encoding of the file, just by the contents of the file???
Any help highly appreciated.
Thanks in Advance,
Regards,
Usman.
[ June 10, 2005: Message edited by: Usman Riaz ]
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Count every character above 127 and estimate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic