Thanks for your help but the problem seems to be related to the charset
used by the app before or during the encoding of the post vars.

The class URLVariables normally does the encoding to standard post
variables for me so that non-asci characters are transformed that way :
http://www.degraeve.com/reference/urlencoding.php

Here is a snippet of my problem:
  var variables:URLVariables = new URLVariables();
  variables.var1 = "omé";
  trace(variables.toString);

the trace output is
  var1=om%C3%A9

instead of
  var1=om%E9

Any idea ?

Do you know how to force UTF-8 charset for an adobe air app ?


2013/8/29 Alex Harui <aha...@adobe.com>

> I think that is two different issues.  There is a standard for POST data
> and you probably have to encode non-ascii characters. See encode() method.
>
> On 8/28/13 3:04 PM, "manitas manitas" <manitas0...@gmail.com> wrote:
>
> >Thanks for your answer.
> >
> >I have just test to put an accent directly in the trace function like this
> > : trace("é");
> >And there is the same encoding issue so it should not be a problem from
> >the
> >TextInput.
> >
> >You said I can't rely on the trace function but this encoding problem also
> >appears when I directly the "é" to a remote server using the POST method
> >of
> >an URLRequest.
> >
> >I'm completely stucked, do you have any idea how to investigate further ?
> >
> >
> >2013/8/28 Alex Harui <aha...@adobe.com>
> >
> >> trace() is a low-level Flash debugger feature.  I'm not sure you can
> >>rely
> >> on it regarding character sets.
> >>
> >> On 8/28/13 1:56 PM, "manitas manitas" <manitas0...@gmail.com> wrote:
> >>
> >> >Hi,
> >> >
> >> >I'm using the apache flex 4.10 sdk to develop an Adobe Air desktop app
> >>for
> >> >Windows.
> >> >
> >> >I have a problem with special characters and accents.
> >> >
> >> >In fact all my mxml file starts with the following line :
> >> ><?xml version="1.0" encoding="UTF-8"?>
> >> >
> >> >but when I try to get the text of a spark TextInput and trace it in the
> >> >output console or send it to a remote server there is a problem of
> >>charset
> >> >encoding.
> >> >
> >> >For example if I type "é" in the TextInput the display is ok in the app
> >> >but
> >> >if I get and trace the text of this TextInput I have this : é
> >> >
> >> >I don't know what I'm missing and where to find the encoding
> >>configuration
> >> >for my app.
> >> >
> >> >Thanks in advance for your help.
> >> >
> >> >Best regards
> >>
> >>
>
>

Reply via email to