PHp/Apache server side settings that affect encoding -


this question has answer here:

all things being equal, i.e. same code base, same lamp setup (identical versions too), server side settings affect charset encoding? have problem euro sign displaying correctly locally (€) , incorrectly (as â�¬) on remote server. i've checked response headers both locally , remotely , both return 'content-type text/html; charset=utf-8' , both using exact same code base both have relevant 'content="text/html; charset=utf-8"' meta , php header() calls. i'm presuming it's possible httpd or php.ini setting somewhere i'm struggling see it?

thanks in advance.

thanks all, reading 'utf-8 way through' useful , helped. found in particular case php.ini on remote server had default_charset = "iso-8859-1" in , appeared falling despite utf-8 headers in code, changing default_charset = "utf-8" has resolved problem.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -