You could also try opening a character stream to use UTF-8 encoding.
See: Byte Encodings and Strings (The Java™ Tutorials > Internationalization > Working with Text)
I don't know if the Java...
Type: Posts; User: helloworld922
You could also try opening a character stream to use UTF-8 encoding.
See: Byte Encodings and Strings (The Java™ Tutorials > Internationalization > Working with Text)
I don't know if the Java...
Take a look at Wikipedia: UTF-8. The only way you would know if you had an invalid UTF-8 character is if it's one of those who's hex sequence is invalid to the UTF-8 encoding. However, if the stream...
What do you mean by validate? Really the only thing you can do if you're trying to read from a file is to see if interpreting the file as UTF-8 encoded is what it's suppose to look like.
If you...