Sven I saw the tests and they works fine. The problem is on the field. I have a form with javascript that gets addresses from Google Maps, then the form is submitted to my Pharo-Zinc-App. When the form is submitted by Safari(OS X), Smalltalks receives the character with accent without encoding (no %). Continuing with the Neuquen example, the 'accented e’ that should be %C3%A9 is received as the raw character. With Firefox all works fine, the character is received with the correct encoding.
So the problem is related to ‘decode:’ In the research I also saw that some accented characters could be received as one character encoded, for example the 'accented e’ could be also %E9. thanks Leo > El 21/4/2015, a las 18:26, pharo-dev-requ...@lists.pharo.org escribió: > > Date: Tue, 21 Apr 2015 22:59:52 +0200 > From: Sven Van Caekenberghe <s...@stfx.eu <mailto:s...@stfx.eu>> > To: Pharo Development List <pharo-dev@lists.pharo.org > <mailto:pharo-dev@lists.pharo.org>> > Subject: Re: [Pharo-dev] [Zinc, ZnPercentEncoder] problem encoding > accents > Message-ID: <d819757b-96b3-4067-ac1f-9a8ad3324...@stfx.eu > <mailto:d819757b-96b3-4067-ac1f-9a8ad3324...@stfx.eu>> > Content-Type: text/plain; charset=utf-8 > > Leo, > > Are you sure you understand what percent encoding is ? > > Check the class comment of ZnPercentEncoding, it has links to a Wikipedia > article. > > Did you see ZnPercentEncoderTests ? > > Anyway, I would think this is what you want to do: > > ZnPercentEncoder new encode: 'Neuqu?n, Neuqu?n Province, Argentina'. > > => 'Neuqu%C3%A9n%2C%20Neuqu%C3%A9n%20Province%2C%20Argentina' > > ZnPercentEncoder new decode: > 'Neuqu%C3%A9n%2C%20Neuqu%C3%A9n%20Province%2C%20Argentina'. > > => 'Neuqu?n, Neuqu?n Province, Argentina' > > Seems to work fine, no ? > > What problem do you have with ZnUrl ? > > Sven