defeatlv Posted May 20, 2012 Share Posted May 20, 2012 Hi, this is my first post and i have a problem :'( . Ok let the pictures speak from their selfes: 1. http://www.bildites.lv/images/i9z5zugkczhho8x17pw5.png 2. http://www.bildites.lv/images/urxpve5yozmuictye9f.png 3. http://www.bildites.lv/images/byoe379qh4e6co6ltlm.png 4. http://www.bildites.lv/images/uk58jptbsvy8okuxcs7.png 5. http://www.bildites.lv/images/qzpscekjpliq62gmhhb2.png Why The Fuc* the āšģķā letters are not displaiing ??? Thanks ! Quote Link to comment https://forums.phpfreaks.com/topic/262825-utf-8-problem-when-retreving-row-from-mysql/ Share on other sites More sharing options...
Adam Posted May 20, 2012 Share Posted May 20, 2012 Are you telling the browser what the charset is in the headers? Try adding the following line at the start of your code: header('Content-Type: text/html; charset=utf-8'); Quote Link to comment https://forums.phpfreaks.com/topic/262825-utf-8-problem-when-retreving-row-from-mysql/#findComment-1347058 Share on other sites More sharing options...
defeatlv Posted May 20, 2012 Author Share Posted May 20, 2012 yes i put <meta charset='utf-8' /> Quote Link to comment https://forums.phpfreaks.com/topic/262825-utf-8-problem-when-retreving-row-from-mysql/#findComment-1347072 Share on other sites More sharing options...
Adam Posted May 20, 2012 Share Posted May 20, 2012 No, that's a meta tag. That's in the content body of the response, not the headers. Quote Link to comment https://forums.phpfreaks.com/topic/262825-utf-8-problem-when-retreving-row-from-mysql/#findComment-1347074 Share on other sites More sharing options...
defeatlv Posted May 20, 2012 Author Share Posted May 20, 2012 it didnt help ! :'( Quote Link to comment https://forums.phpfreaks.com/topic/262825-utf-8-problem-when-retreving-row-from-mysql/#findComment-1347097 Share on other sites More sharing options...
defeatlv Posted May 20, 2012 Author Share Posted May 20, 2012 Up Quote Link to comment https://forums.phpfreaks.com/topic/262825-utf-8-problem-when-retreving-row-from-mysql/#findComment-1347105 Share on other sites More sharing options...
Jessica Posted May 20, 2012 Share Posted May 20, 2012 That looks like data that has been encoded twice. Are you running utf8_encode on the data at any point? I've seen that when I have data and I utf8_encode it, then accidentally encode it again. Quote Link to comment https://forums.phpfreaks.com/topic/262825-utf-8-problem-when-retreving-row-from-mysql/#findComment-1347137 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.