Hi,
I am a Tomcat3.2 user. I have some problems with setting the charset
in my pages. my scenario is as below.
Scenario 1:
1. I have a page A.jsp in which i have some chinese characters.
2. At the very start of A.jsp i have included page B.jsp using the
include directive.
3. In B.jsp i have set the content type as gb2312 using the page directive.
4. After these changes i compiled the jsp file A.jsp(with encoding as
UTF-8) using JSPC. In the source code, the chinese characters in my
A.jsp was replaced as
out.write("\r\n<br>\r\n<br>\r\nChinese CHARACTERS:
�~Q�~E»¢�~V�~P¹ú\r\n<script>\r\nalert(\"�~Q�~E»¢�~V�~P¹ú\");\r\n</script>\r\nrooting12\r\n<br>\r\nI18N
");
Scenario 2:
1. I have a page A.jsp in which i have some chinese characters.
2. At the very start of A.jsp i have included page B.jsp using the
include directive.
3. In A.jsp i have set the content type as gb2312 using the page directive.
4. After these changes i compiled the jsp file A.jsp (with encoding as
UTF-8) using JSPC. In the source code, the chinese characters in my
A.jsp was replaced as
out.write("\r\n<br>\r\nCHINESE CHARACTERS:
�~[~E�~Y~N中�~[�\r\n<script>\r\nalert(\"�~[~E�~Y~N中�~[�\");\r\n</script>\r\nrooting12\r\n<br>\r\nI18N
");
Here it can be seen that the character formation is different in
each case. My understanding is that if i set my content type in the
included page then it should get reflected in the page that includes it.
So i think that Scenerio 1 should result the same as Scenario2. Am i
understanding it correctly or not. If not can any one say what is the
mistake i am making.
Thanks
Shanmugam.PL
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>