Well, all I want to is to send the string forward in an xml string.
The flow is like this:

User fills in a couple of forms (EditText) and presses a button. The
values is added into an xml string and posted.

The thing is when I print the values in the Log cat, it looks weired.
And the the result on the receiving end is ??? (all åäö becomes
question marks).

So what I want to do is simply send the values as utf-8 in the xml
string. That's it.

So I agree with you, I should keep it as UTF-8. But I'm not following
you on what I am able to do?

/J

On May 4, 8:33 pm, "Jonas Petersson" <[email protected]> wrote:
> jw wrote:
> > Well, then how do I do that? I've been trying different approaches but
> > I can't seem to get the text as a string with äåö. Do you now how I
> > can do that? (I should add that this thing with encodings isn't my
> > specialty).
>
> It all depends on what you intend to do with the string. In a perfect
> world you should just keep it in UTF-8 encoding for ever. There
> certainly are ways to turn them into ISO variations, but if the text
> contains the EURO sign, names of Greek people or similar it will break -
> and if you ever want to show it on your Android screen again will have
> to turn it back into UTF-8 again. So, my advice is to keep it as it is
> and adjust whatever other system you are using it with to cope with
> UTF-8. Sure, there will be a learning curve, but in the end you will
> have a more robust system.
>
>                 Good luck / Jonas
>
> PS. Prisjakt is UTF-8 all the way through even though there are no
> products I'm aware of that goes outside ISO8859-1.
>
> --
> 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 
> athttp://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