I have gotten a very large back-up (.BAK) of a database used in Laos which I restored on an SQL Server 2014 Express (local) server. It is a database with a lot of columns which have Lao text in them. When the people who use the database access it through the client application (some sort of Thai accounting program) they can see all of the Lao data displayed correctly when they set their displaying font to Saysettha, which is a Unicode font with the Lao characters.
However, I am trying to export the data in the tables (through a simple text or csv file, as the export process needs to be simple and repeatable) from SSMS and the data is never displayed correctly. Not even when I am doing a table query in SSMS.
I know this is probably a problem with the encoding/collation. The columns are stored in VARCHAR
columns. I have tried casting them into NVARCHAR
columns, which doesn't solve the problem. I also tried to collate the column to the Lao collation (the server collation is set to Thai_CI_AS after the restore of the backup);
I tried to save the output table as a CSV and TXT file with different encoding, but when I open them in e.g. Notepad++ I see the same wrong characters.
Unfortunately I don't have a sample of what the text should look like as the Client software is not running on my laptop.
Ideally, I would be able to export the columns in UTF-8 encoding.