wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes utf-8 character file -check Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "utf-8 character file -check" Watch "utf-8 character file -check" New topic
Author

utf-8 character file -check

Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi,
I am having file myfile.txt, I want to know whether its utf-8 encoded or other then that. How can I check?

Regards,
Sankar. S
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

UTF-8 files often start with the three bytes (in hex) EF BB BF, but this is more a convention than a rule.
 
Don't get me started about those stupid light bulbs.
 
subject: utf-8 character file -check
 
Similar Threads
How to read Franch from ResourceBundle
International Characters
URIENcoding in server.xml not working in IE6
Save File As UTF-8
UTF8 java + arabic