I have reviewed one more time my application with encoding. Earlier when I 
was running apache with jserv (jserv runs with ojsp compiler) I had one 
include wich was common for all my jsp pages in my application and that was 
usually included somewhere in the beginning of my jsp pages. I was convinient 
because if I want for example to change one cyrrilic encoding to another one 
it is enough to change it one time in the included file, then touch *.jsp and 
changes appear everywhere in all jsp pages. 
But obviously it does not work the same in the apache & tomcat configuration. 
I was forced to put encoding dirrective as a first statement in all my 
primary jsp pages in order to make cyrrilic be shown properly.

On Thursday 11 July 2002 07:04, you wrote:
> 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</s
>cript>\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]>

Reply via email to