-1
Good afternoon,
The accented characters in my system are not working when I bring it from the database, are like this , I have tried to put the meta tag, I have tried to save the file with a different encoding, but it does not work..
NOTE: the text written by me in the code carries the right, it is only the information that comes from the bank that does not carry
NOTE²: When I run the query in Sqlyog all the accents are there correctly
try applying utf8_encode($variable) to the variable that is printed from the database
– AnthraxisBR
It all depends on which the
encoding
used in the database, this character appears when you try to print a text that has someencoding
other thanutf8
inutf-8
. The @Anthraxisbr solution should work... But maybe it’s more interesting to change theencoding
of the bank or its archivephp
– edson alves
@Anthraxisbr this function works, but still a more "global" solution Thank you
– Otavio Souza Rocha
@edsonalves unfortunately have no way to do this, the company’s database has been structured for a while and has several systems that use it. Thank you
– Otavio Souza Rocha