Hey buddy u solved ur problem ??? or its still there???
I am having same problem in Hebrew File.. If u knw thn pls help me...


2009/11/10 StevePotell <[email protected]>

> urlString = urlBase + Uri.encode(ownerName);
>
> On Oct 4, 9:58 pm, Kangping <[email protected]> wrote:
> > hi all,
> > i am working on an application supportingChineseand have been
> > puzzled by a encoding error.i really really hope someone here could
> > help me out of this sucking problem...:(
> > i take aChinesestring from an EditText and append it to a URL which
> > goes like "?Owner=XXX". i am trying to send this URL usingUTF-8.
> > the following is what i have done:
> > a) i get the string "ownerName"(containingChinesecharacters)
> > b) String tmp = new String(Owner.getBytes("UTF-8"), "UTF-8");
> > c) urlString = urlBase + tmp
> > d) URL url = new URL(urlString);
> > e) InputStream is = url.openStream();
> > ... ...
> >
> > when i check the encoded byte[] array, everything seems alright. but
> > the byte[] array which server gets is quite wrong (always stuff like
> > "1a1a").
> > i tried the exact request string with the exact byte array in a java
> > applet, the server works.
> > so i really don't know what on earth is going wrong.
> >
> > Could anyone help? Many thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to