roxen.lists.roxen.general

Subject Author Date
roxen 4.5 and utf-8 url encoding Michael Stenitzer <jenoe[dot]stenitzer[at]gmail[dot]com> 20-02-2007
hi list,

i was very happy with the new features for database (utf8) character
support. and also with the fixed :url encoding according to W3C's
I18n.

but trying to implement those features in our applications i have a
problem and i think it might be a bug.

if i'm :url encoding an iso-8859-1 string "Demö" i get "Dem%c3%b6"
which looks fine for me according to [1].

if i'm :url encoding an utf8 string "Demö" i get "Dem%c3%83%c2%b6".
the reason seems to be that the utf8 character "ö" is utf8 converted
one more time before being encoded to the %HH hex value.

can anybody (maybe mast who implemented it) enlighten me, if this is a
bug or correct?

thanx in advance
/michael


[1] http://www.w3.org/International/O-URL-code.html

-- 
Michael Stenitzer | WIENFLUSS information.design.solutions
www.wienfluss.net | linke wienzeile 178 / 3 / 142 | wien AT
fon ++43 650 wfluss 0 | fax  ++43 1 4854200 31