Jump to content

Coding and decoding portuguese accents


brosjr

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.