Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
04-14-2010, 09:09 AM #1
- Join Date
- Apr 2010
- Thanked 0 Times in 0 Posts
Unicode problem on a localhost server
I am using Wampserver for my Windows Apache-PHP-MySQL stack. The file accessed has a header that defines it as utf-8, meta tag in HTML also defines it as utf-8.
My best guess so far is that it has something to do with Apache. Searching through Google was of little help thanks to rather common keywords used. When I enter:
.. the browser converts the URL to ..
.. and same applies to $_GET string returned to the document. Now I know that a hosting service I am using has no such problem, the same file functions as expected on one of the virtualhosts I am renting. This only happens on localhost.
Any solution to this problem? Where to look?
One of the threads I found from Google mentioned the value 'AddDefaultCharset', which is not defined in my install. Language configuration does have AddCharsets (which does include utf-8) as well as languages, but that value was not defined. When I defined it myself as "AddDefaultCharset utf-8" in the end and restarted, nothing changed and the URL was still convered.
Any help would be appreciated, thanks!
EDIT: I found that the URL will be correct, if it is submitted with a method="get" form, but will be converted incorrect when accessed straight from URL.
Last edited by Waher; 04-14-2010 at 10:41 AM.