How does the web server choose between unicode and utf-8 for accented characters?
Posted
by
jacques
on Pro Webmasters
See other posts from Pro Webmasters
or by jacques
Published on 2012-12-12T11:19:22Z
Indexed on
2012/12/12
23:21 UTC
Read the original article
Hit count: 332
apache
I have a web server with my ISP which replaces accented characters in URLs with their unicode values: for instance é (eacute) is translated to %e9 (dec 233).
For testing locally I use EasyPHP which translates those characters by their utf-8 equivalence: é is then replaced by the well known sequence %c3%a9 (é)...
Browsers served by EasyPHP don't decode unicode values but they do if running locally (utf-8 and non converted accent also)...
I have been unable to find where this behavior is configured in the server.
This is a problem as some urls are built by my application using the php rawurlencode() which seems to always encode with unicode values on both servers.
Any idea?
© Pro Webmasters or respective owner