You can also refer to this official document.
Best regards,
Percy Tang
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a database that when I open it, some data with accents appear with an error, an icon with a question mark appears. I tried to find solutions on the internet but I didn't find anything. I need to fix this problem and show the accent correctly without changing the database, without removing the accent.
I attached a database image with the error:
You can also refer to this official document.
Best regards,
Percy Tang
a question mark appears.
That happens if you have Unicode text, with can't presented as ASCII with oyur used collation (code page), for
example.
SELECT N'ภาษาไทย', 'ภาษาไทย'
The second column shows ???.
So your database don't match your requirements to store Unicode. Change data type for varchar (ANSI) to Nvarchar = Unicode; a lot of work.
The character you see is known as REPLACEMENT CHARACTER. Typically you see it when UTF-8 is expected, but the character is not part of a legal UTF-8 sequence.
To get the character correct, you may need to do something like:
SELECT cast(cast(col AS varbinary(100)) AS varchar(100) COLLATE Latin1_General_100_CI_AS))
FROM tbl
But the hour is late here, and I don't have time to test.