brosjr Posted July 13, 2011 Share Posted July 13, 2011 Hi all, I wrote a script that put some values into a database, when I look directly at phpMyAdmin it is shown like this Econômica. But when I query this the result comes Econ�mica. I searched all over and I tried the utf8_decode and other ways and nothing, it always changes the portuguese accents with �s. Please Thankx Link to comment https://forums.phpfreaks.com/topic/241920-coding-and-decoding-portuguese-accents/ Share on other sites More sharing options...
premiso Posted July 13, 2011 Share Posted July 13, 2011 Your database character set needs to be UTF8, as well as the tables character set, as well as the page that the data is being input from and output on. Universal charset is the key. Somewhere along the line, probably the tables in the database, the charset is different. Link to comment https://forums.phpfreaks.com/topic/241920-coding-and-decoding-portuguese-accents/#findComment-1242375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.