Mysql, Apache, PHP UTF ecoding issues -


i'm trying move site , i'm baffled problems i'm having trying sort out encoding issues database.

the database on new server using utf8 , tables imported have utf8. checking exported sql file 'file db.sql' says: utf-8 unicode text has defined in sql queries in sql file.

in php.ini i've set default_charset = "utf-8" , apache.conf i've set adddefaultcharset utf-8 have added sites-enabled (regular , https) in apache: adddefaultcharset utf-8

in html/php document header have:

  <meta http-equiv="content-type" content="text/html; charset=utf-8"> 

i've checked php documents served new web server 'file' , these are: html document, utf-8 unicode text

besides of this, encoding not correct neither in mysql client nor when served via web server. example, ö becomes ö, å becomes Ã¥ , ä becomes ä. utf8_decode in php display text seems correct encoding @ least?

if can give me hint might have gone wrong appreciated. i'm clueless. me seems have been set utf-8 yet these issues persist.

edit/add: response headers when fetching document new server says: content-type text/html; charset=utf-8

edit 2: stackoverflow suggests has been solved, not find solution works link provided.


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? -