Bisa Posted October 22, 2008 Share Posted October 22, 2008 My tables are set as utf8_unicode_ci and the css says utf-8, when I fetch data from the db to show on my website I am unable to show characters like å, ä and ö unless I convert them to å ä and ö before inserting them into the database. I suspect I miss something newbish here but then again I am a newb :-\ I'd appreciate any pointers to help me out here, thnx in advance =) Link to comment https://forums.phpfreaks.com/topic/129536-solved-table-charset-utf8_unicode_ci-and-css-set-to-utf-8-im-unable-to-show-%C3%A5%C3%A4%C3%B6/ Share on other sites More sharing options...
Bisa Posted October 22, 2008 Author Share Posted October 22, 2008 never mind, seems the "universal" charset is not as universal as I thought it was changing utf-8 to iso-8859-1 did the trick and all of my å, ä and ö are rendered correctly in my browser. Link to comment https://forums.phpfreaks.com/topic/129536-solved-table-charset-utf8_unicode_ci-and-css-set-to-utf-8-im-unable-to-show-%C3%A5%C3%A4%C3%B6/#findComment-671759 Share on other sites More sharing options...
germinal Posted November 19, 2008 Share Posted November 19, 2008 thx for the solution... have been looking for this for a while Link to comment https://forums.phpfreaks.com/topic/129536-solved-table-charset-utf8_unicode_ci-and-css-set-to-utf-8-im-unable-to-show-%C3%A5%C3%A4%C3%B6/#findComment-693304 Share on other sites More sharing options...
Mchl Posted November 19, 2008 Share Posted November 19, 2008 You should do SET NAMES = 'utf-8' query, each time you connect from PHP to MySQL Link to comment https://forums.phpfreaks.com/topic/129536-solved-table-charset-utf8_unicode_ci-and-css-set-to-utf-8-im-unable-to-show-%C3%A5%C3%A4%C3%B6/#findComment-693321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.