Re: [Resin-interest] Quercus script-encoding don't work with double char encoding like CJK

2007-03-14 Thread sun baoming

i am sure my encoding is gb2312.

maybe it's some upgrade make this bug.

your resin-pro 3.0.23  are something difference with my Resin
3.1.0(opensource) version.

i will try it with resin-3.0.23 again.


2007/3/12, Markus Ken Baron-Moriyama <[EMAIL PROTECTED]>:


Hello Sun,
I tried out your problem with the japanese Shift-JIS encoding. And it
works for me:
Resin-Pro 3.0.23, Win XP, JDK 1.5

As the servlet mapping:


Shift_JIS



And the php file (in Shift-JIS as stated in the script-encoding element):


will print out the correct japanese text in Shift-JIS. If I leave out
the header function, the output will be in UTF-8, but nevertheless not
garbled.

If I save my test php file in UTF-8 and set the script-encoding
accordingly also to UTF-8, this also works. Are you 100% sure that your
php file is actually in gb2312 ?

Best regards,
markus


sun baoming wrote:
>
>
> -- Forwarded message --
> From: *sun baoming* <[EMAIL PROTECTED] >
> Date: 2007-3-10 上午11:06
> Subject: Quercus script-encoding don't work with double char encoding
> like CJK
> To: resin-interest@caucho.com 
>
>
>
> i try the config from Getting Started with Quercus like the following,
> when i use the GB2312 script-encoding, my test.php don't work ,
> display some human unreadable code instead of normal chinese char.
>
> the second, i change the test.php with encoding iso-8859-1, and try
> the script-encoding iso-8859-1, and it works well.
>
>
> system: windows xp (simplified chinese version)
> resin : 3.1.0
> jdk : sun jdk 1.5.0_09
> php script-encoding: gb2312
>
>
> resin-web.xml
> http://caucho.com/ns/resin
>  ">
>   
>servlet-class="com.caucho.quercus.servlet.QuercusServlet">
> 
>   
>
> GB2312
> 
>   
> 
>
>
>
>
>
> 
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>

--
--
Dipl.-Ing. Markus Ken Baron-Moriyama <[EMAIL PROTECTED]>
Director of Global IT Relations and Research
Co-Founder

Wazap AG
Karl-Liebknecht-Str. 5
10178 Berlin
Germany

Tel:  +49 30 278744 2241
Fax:  +49 30 278744 29

URL: http://wazap.com/

Wazap Aktiengesellschaft
HRB 103534 B
Sitz der Gesellschaft: Berlin
Amtsgericht:Berlin-Charlottenburg
Vorstand:   Andreas Ruehrig (Vors.), Timo Meyer, Alexander Piutti,
Philip Gienandt
Aufsichtsrat:   Martin Sinner (Vors.), Frank Bo"hnke, Florian Seubert




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Quercus script-encoding don't work with double char encoding like CJK

2007-03-12 Thread Markus Ken Baron-Moriyama
Hello Sun,
I tried out your problem with the japanese Shift-JIS encoding. And it
works for me:
Resin-Pro 3.0.23, Win XP, JDK 1.5

As the servlet mapping:


Shift_JIS



And the php file (in Shift-JIS as stated in the script-encoding element):


will print out the correct japanese text in Shift-JIS. If I leave out
the header function, the output will be in UTF-8, but nevertheless not
garbled.

If I save my test php file in UTF-8 and set the script-encoding
accordingly also to UTF-8, this also works. Are you 100% sure that your
php file is actually in gb2312 ?

Best regards,
markus


sun baoming wrote:
>
>
> -- Forwarded message --
> From: *sun baoming* <[EMAIL PROTECTED] >
> Date: 2007-3-10 上午11:06
> Subject: Quercus script-encoding don't work with double char encoding
> like CJK
> To: resin-interest@caucho.com 
>
>
>
> i try the config from Getting Started with Quercus like the following,
> when i use the GB2312 script-encoding, my test.php don't work ,
> display some human unreadable code instead of normal chinese char.
>
> the second, i change the test.php with encoding iso-8859-1, and try
> the script-encoding iso-8859-1, and it works well.
>
>
> system: windows xp (simplified chinese version)
> resin : 3.1.0
> jdk : sun jdk 1.5.0_09
> php script-encoding: gb2312
>
>
> resin-web.xml
> http://caucho.com/ns/resin
>  ">
>   
>servlet-class="com.caucho.quercus.servlet.QuercusServlet">
> 
>   
>
> GB2312
> 
>   
> 
>
>
>
>
>
> 
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>   

-- 
--
Dipl.-Ing. Markus Ken Baron-Moriyama <[EMAIL PROTECTED]>
Director of Global IT Relations and Research
Co-Founder

Wazap AG
Karl-Liebknecht-Str. 5
10178 Berlin
Germany

Tel:  +49 30 278744 2241
Fax:  +49 30 278744 29

URL: http://wazap.com/

Wazap Aktiengesellschaft
HRB 103534 B
Sitz der Gesellschaft: Berlin
Amtsgericht:Berlin-Charlottenburg
Vorstand:   Andreas Ruehrig (Vors.), Timo Meyer, Alexander Piutti, Philip 
Gienandt
Aufsichtsrat:   Martin Sinner (Vors.), Frank Bo"hnke, Florian Seubert



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest