(keitai-l) Re: sending japanese characters from IAppli to servlet

From: Joe Bowbeer <joe.bowbeer_at_gmail.com>
Date: 06/21/05
Message-ID: <31f2a7bd050621091721d385ee@mail.gmail.com>
I've successfully used iAppli's URLEncoder on the mobile side and
java.net.URLEncoder on the servlet side.

Also checkout DataOutput.writeUTF and DataInput.readUTF.  These could
be useful if you were POSTing.

To isolate the problem, I suggest you:

1. Verify the bytes encoded and decoded
2. Verify the bytes sent and received
3. Deal with the ?'s (final step)

On 21 Jun 2005, Gokul Kannan Jeyapaul <jgk_4u@rediffmail.com> wrote:
> 
> Hello Friends,
>   Im pretty new to IAppli,I need to send japanese characters from
> the screen to a Java servlet,
>   Im appending the japanese characters as parameters with the URL
> but im not able to retrive the japanese characters alone in the
> servlet,Its getting into Junk values or question marks(???????)
> when i read it from my servlet.
> 
>   Some of the solution i tried are
> * I tried URLEncoder.encode to encode the japanese words while
> appending to the URL and used URLDecoder.decode in my servlet.
> 
> * I tried using new
> String(japanesechars.getBytes("SJIS"),"SJIS"),
> and used same new
> String(request.getParameter("paramname").getBytes("SJIS"),"SJIS").
> 
>   The above to methods failed..And im using a doPost in my
> servlet.Please friends do let me know u r views and ideas on it,I
> suppose this groups has some expert programmers in I-Appli.
>   Thanks in advance.
> 
> Regds,
> Gokul
>
Received on Tue Jun 21 19:18:22 2005