Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 788D910248 for ; Thu, 29 Aug 2013 10:21:11 +0000 (UTC) Received: (qmail 39975 invoked by uid 500); 29 Aug 2013 10:21:10 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 39916 invoked by uid 500); 29 Aug 2013 10:21:10 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 39908 invoked by uid 99); 29 Aug 2013 10:21:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 10:21:09 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of miguel.cd.ferreira@hotmail.com designates 157.55.0.220 as permitted sender) Received: from [157.55.0.220] (HELO dub0-omc1-s21.dub0.hotmail.com) (157.55.0.220) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 10:21:03 +0000 Received: from DUB124-W23 ([157.55.0.237]) by dub0-omc1-s21.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 29 Aug 2013 03:20:42 -0700 X-TMN: [Nlfi60y30NYkhn4fwcFUovBmVUYH/B/i] X-Originating-Email: [miguel.cd.ferreira@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_c2397cb6-6720-498f-b6ce-c95bd06ad893_" From: Miguel Ferreira To: "users@flex.apache.org" Subject: RE: Pb with special characters and accents Date: Thu, 29 Aug 2013 11:20:42 +0100 Importance: Normal In-Reply-To: References: ,, MIME-Version: 1.0 X-OriginalArrivalTime: 29 Aug 2013 10:20:42.0232 (UTC) FILETIME=[6A699F80:01CEA4A1] X-Virus-Checked: Checked by ClamAV on apache.org --_c2397cb6-6720-498f-b6ce-c95bd06ad893_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C=20 I don't know what data type are you transferring to your server side.In my = last application i had to use JSON and inside a XML with data about text (p= ages of text!). To not loose the content i add to create a child on the XML item for the co= ntent with cdata like this: private function addChildCDATA(text:String):XML { return new XML("")=3B } This solved my problem. In other project i used base64 encode on the front-end and decoding on back= -end. Try this both alternatives and i hope that helps with your problem. Miguel. > Date: Thu=2C 29 Aug 2013 12:12:45 +0200 > Subject: Re: Pb with special characters and accents > From: manitas0302@gmail.com > To: users@flex.apache.org >=20 > 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. >=20 > 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 >=20 > Here is a snippet of my problem: > var variables:URLVariables =3D new URLVariables()=3B > variables.var1 =3D "om=E9"=3B > trace(variables.toString)=3B >=20 > the trace output is > var1=3Dom%C3%A9 >=20 > instead of > var1=3Dom%E9 >=20 > Any idea ? >=20 > Do you know how to force UTF-8 charset for an adobe air app ? >=20 >=20 > 2013/8/29 Alex Harui >=20 > > I think that is two different issues. There is a standard for POST dat= a > > and you probably have to encode non-ascii characters. See encode() meth= od. > > > > On 8/28/13 3:04 PM=2C "manitas manitas" wrote: > > > > >Thanks for your answer. > > > > > >I have just test to put an accent directly in the trace function like = this > > > : trace("=E9")=3B > > >And there is the same encoding issue so it should not be a problem fro= m > > >the > > >TextInput. > > > > > >You said I can't rely on the trace function but this encoding problem = also > > >appears when I directly the "=E9" to a remote server using the POST me= thod > > >of > > >an URLRequest. > > > > > >I'm completely stucked=2C do you have any idea how to investigate furt= her ? > > > > > > > > >2013/8/28 Alex Harui > > > > > >> 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=2C "manitas manitas" wrot= e: > > >> > > >> >Hi=2C > > >> > > > >> >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 : > > >> > > > >> > > > >> >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 "=E9" in the TextInput the display is ok in t= he app > > >> >but > > >> >if I get and trace the text of this TextInput I have this : =C3=A9 > > >> > > > >> >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 > > >> > > >> > > > > = --_c2397cb6-6720-498f-b6ce-c95bd06ad893_--