From: comopasta Gr Date: 2011-05-05T19:35:50+09:00 Subject: Re: Encoding nightmare Josef 'Jupp' Schugt wrote in post #996590: > On Wed, 04 May 2011 13:05:26 +0200, comopasta Gr > wrote: > >> onclick="remove('Tom%27s+card')" >> onclick="remove('Validaci%C3%B3n')" > : >> BUT now the other one is converted to Validación >> Note the ó > > There is two parts to this. Firstly you are using Percent-encoding (aka > URL encoding) which maps spaces to plus signs and characters to %XY > tokens > wiht X and Y being a hexadecimal digit. This works as intended. Secondly > you are encoding the characters according to utf-8 which maps "'" to %27 > and "ó" to %C3%B3. However, for displaying ISO-8859-15, Windows-1252 > (aka > CP 1252) is used which interprets %C3 as  and %B3 as ³. > > Try either switching to utf-8 or - if this is not possible - using %F3 > as > the proper encoding of "ó" for the given character set. > > Jupp Hi, thanks for the tip. As replied earlier I managed to solve the issue with gsub. I just wanted to comment that utf-8 should be in use already. At least based on the meta info generated: Thanks again. -- Posted via http://www.ruby-forum.com/.