URI encoding issue (cyrillic)

165 views
Skip to first unread message

Fabio Bozzo

unread,
May 16, 2015, 5:52:26 AM5/16/15
to lu...@googlegroups.com
I just moved one of our core apps from Windows+IIS+Coldfusion to Ubuntu+Apache+Lucee. The first big problem is the URI  encoding for exotic alphabets. 

For example, trying to reach this url
http://www.example.com/ru/Солнцезащитные-очки/saint-laurent/

results in this record in the Apache access.log:
Well, I think that's correctly url-encoded. Then I use a rewrite rule in .htaccess file to get that portion of the url (the cyrillic one) in a url query string parameter (let's say "foo").

Using cflog to dump it, I see in the application log:
/index.cfm?foo=оÑки-длÑ-зÑениÑ&

...which is obviously wrong, because what I need is the original string, in utf-8 cyrillic.

I tried to put URIEncoding parameter in my server.xml tomcat http connector, with no results:
<Connector port="8888" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />

How can I get my url parameter in UTF-8?
Thank you all

Dominic Watson

unread,
May 16, 2015, 3:30:21 PM5/16/15
to lu...@googlegroups.com
This would appear to be an issue on the Apache / Mod Rewrite side of things.

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/1786900b-30bf-4afe-99d0-7a44935874d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pixl8 Interactive, 3 Tun Yard, Peardon Street, London
SW8 3HT, United Kingdom

T: +44 [0] 845 260 0726 W: www.pixl8.co.uk E: in...@pixl8.co.uk

Follow us on: Facebook Twitter LinkedIn
CONFIDENTIAL AND PRIVILEGED - This e-mail and any attachment is intended solely for the addressee, is strictly confidential and may also be subject to legal, professional or other privilege or may be protected by work product immunity or other legal rules. If you are not the addressee please do not read, print, re-transmit, store or act in reliance on it or any attachments. Instead, please email it back to the sender and then immediately permanently delete it. Pixl8 Interactive Ltd Registered in England. Registered number: 04336501. Registered office: 8 Spur Road, Cosham, Portsmouth, Hampshire, PO6 3EB
Reply all
Reply to author
Forward
0 new messages