1
I’m making a form, and when I record the information with special characters, record it well... only when I rescue the information it comes encoded... already used , utf8_encode/Decode and nothing I do not know if it is in php or in the bank that I have to move... detail, I have no autonomy to deal directly with the Mssql database...
A brief example:
JOHN PATIENCE
when I use: $NOME = utf8_encode($row['NOME']);
-> He brings the following: "JO? THE PATIENCE"
when I use: $NOME = utf8_decode($row['NOME']);
-> He brings the following: "JO? O PACI? NCIA"
When I use: $NOME = ['NOME'];
-> He brings the following: "JO? THE PACIENCE"
I don’t know if it’s the comic book or the programming I move... Thank you so much!
Is your database utf8 or latin1? Is your PHP configured to use utf8 or iso-8859-1? Your text is confusing and the codes posted too, please edit the question and provide an example that can be reproduced.
– Guilherme Nascimento
What database driver is using? mssql, sqlsrv, PDO, adodb?
– rray
@Guilhermenascimento I’ll see an editing mode that doesn’t get so confused...
– Ursones
@Read this: http://answall.com/a/43205/3635 this is likely to help
– Guilherme Nascimento
Another strange thing is that the
ã
was like?
and theê
was like�
, to me it seems that it has mixed dice. I do not know to say.– Guilherme Nascimento