aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 2864
    
  11

UTF-8 files often start with the three bytes (in hex) EF BB BF, but this is more a convention than a rule.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: utf-8 character file -check