Hi Ryuji,

Could you send a test case that I can run on my machine and that
reproduces the problem? I'm not i8n expert and I need help if you want
me to fix this problem.

Thanks
-Vincent

> -----Original Message-----
> From: Ryuji Hattori [mailto:[EMAIL PROTECTED]
> Sent: 26 June 2003 07:22
> To: [EMAIL PROTECTED]
> Subject: how to tread with a multibyte string parameter in WebRequest.
> 
> 
> Hello all.
> 
> I'm developping Java Servlet based Web Application with
> Japanese character and using Cactus for unit test of server
> module. In testing a simple string matching test between
> a string sent as a http request parameter and the same contant
> string value with the parameter one prepared in server side
> test code, with the string of single byte character the test
> works well. but with the string of multibyte the same test
> does not work well, fails for some reason. the test case is
> simple one. for instance
> 
>                       :
>                       :
>     public void beginEncodingTest1(WebRequest theRequest) throws
Exception
> {
>       String str = %something to test %....
>         theRequest.addParameter("test1", str);
>     }
> 
>                       :
>     public void testEncodingTest1() throws Exception {
>       String str = comms.request.getParameter("test1");
>       assertEquals(%test string set in begin methods..%, str);
>                       :
>     }
> 
> my enviroment is
> 
> OS:           Windows 2000 SP3
> JDK:          JDK1.4.1_003 for Windows
> AppServer:    Enhydra 5.0
> Cactus:       cactus 1.4.1
>               (+ original extension package for Enhydra Application)
> 
> please advice me.
> 
> With regards.
> 
> ********* smile brings (^o^) happiness.************
> Ryuji Hattori
> in Hitz Technical Lab([EMAIL PROTECTED])
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to