Java Cookbook
Charset
Problem:
You want to know what character set a web page is encoded in.
Solution:
The Java programmer can use icu4j's CharsetDetector class to create a best guess for the charset of a specified input stream. Unfortunately this is very much a guess, and should not be overly relied upon.
To get the Charset of web page:
If you are testing any of these recipes in Eclipse and the characters are not displaying correctly in your console visit http://i18ncookbook.com/eclipse_settings.
This site is ad supported. I hope you find something among our sponsors worth clicking. ;)
i18n search
Custom Search