URI encoding issue (cyrillic)

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:
http:
//www.example.com/ru/Солнцезащитные-очки/saint-laurent/

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:

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

See duplicate raising of this on Stack Overflow:

This would appear to be an issue on the Apache / Mod Rewrite side of things.On 16 May 2015 at 10:52, Fabio Bozzo <@Fabio_Bozzo> wrote:

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/
http://www.example.com/ru/Солнцезащитные-очки/saint-laurent/

results in this record in the Apache access.log:
http://
www.example.com/ru/Солнцезащитные-очки/saint-laurent/

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:

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


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+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/1786900b-30bf-4afe-99d0-7a44935874d3%40googlegroups.com
https://groups.google.com/d/msgid/lucee/1786900b-30bf-4afe-99d0-7a44935874d3%40googlegroups.com?utm_medium=email&utm_source=footer
.
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: info@pixl8.co.uk
Follow us on: Facebook http://www.facebook.com/pixl8 Twitter
http://www.twitter.com/pixl8 LinkedIn
http://www.linkedin.com/pixl8CONFIDENTIAL
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