Apache Web Server character encoding

Posted by OBY on Server Fault See other posts from Server Fault or by OBY
Published on 2012-09-02T13:49:59Z Indexed on 2012/09/02 15:40 UTC
Read the original article Hit count: 200

Filed under:
|
|
|

I've recently transferred my webapp from my localhost (LH) to a VPS, and have had hebrew chars-encoding probs since. Whenever I send a request with a heb-char it results in "?????" saved to the DB.

My LH config was tomcat6, MySQL, and centOS 6.2, opened to the web. In the VPS env I'm behind an Apache Web Server, and the rest is quite the same (though I haven't done anything to its installation). Please note I already have had this problem before, on my LH when the request was sent from IE/chrome (not FF!). The solution was to apply a filter on the the context and change the char-type to UTF-8.

My webapp content char-encode is utf-8, MySql server set to utf8 using charset utf8;, and my centOS set to iw_IL.UTF8 using export LANG=iw_IL.UTF8. When I use locale the bash output seems to be set correctly.

Any suggestions?

© Server Fault or respective owner

Related posts about apache2

Related posts about mysql