Hi All Developer
I would like to ask a question about Tomcat's JSP page development problems
The problems is related to the following set of properties files and
contentType
I have set the page contentType as "TEXT/HTML;charset=UTF-8"
and read a properties files which is written by Microsoft Word using "Save
as" encoding text "utf-8"
the coding that I use to read the resource bundle is as normal.
rb = ResourceBundle.getBundle("test");
str_text = rb.getString("username_b5");
out.print(str_text + "<BR>");
But the output is found to be unreadable result.
after that my friend tell me to use
out.println(new String(rb.getString("test").getBytes("ISO-8859-1"),
"UTF-8"));
the result is readable.
I would like to ask can I change some JVM default encoding such that I can
use the default method to read the properties files.
Samuel