Is the JSP Page directive, more specifically, <%@page contentType="text/html; charset=tis-620"%>
be equivalent and substitutable with HTML tag
<META http-equiv="Content-Type" content="text/html; charset=tis-620">
The reason for asking is that I need to use Thai characters for all platforms, Windows, Unix, and Mac.
I ran into problem with not seeing the Thai characters on a Sun platform using
<%@page contentType="text/html; charset=windows-874"%>. Since I cannot use Tis-620 instead
of windows-874 (a confirmed bug in ServletExec), I ran into the HTML version of setting the
characterset.
Would using the HTML META tag have any impact to my JSP application? If not, the next question
is then, can I use dynamic scripting to at run-time set the characterset to use. For example,
<META http-equiv="Content-Type" content="text/html; charset=<%= charset %>"> where
charset can be read from a configuration file.
Would this work?
Peter Claesson
