I use Stata to extract data from an MS SQL Server database. For example, I use this command to load a table with country names in Arabic, Chinese, English, French, Russian and Spanish:
In Stata 13, this loads the English, French and Spanish names correctly and with all accents (e.g. Afganistán and Algérie) but for the Arabic, Chinese and Russian country names only question marks are shown in Stata.
In Stata 14, the same command loads the Arabic, Chinese, English and Russian names correctly but in the French and Spanish names the accents have been replaced by a different character.
I assume that this is a coding problem but the section "Unicode and ODBC" in [D] odbc contains very little information. I also don't know if version is supposed to have an effect (help version doesn't mention Unicode) but I get the same result in Stata 14 when the do-file starts with version 13.1 or version 14.0.
How could I load all country names correctly in Stata 14?
Code:
odbc load, exec("select * from dbasisdess.country")
Code:
Afghanistan Afghanistan Afganistán ?????????? ??? ????????? Algeria Algérie Argelia ????? ????? ???????
Code:
Afghanistan Afghanistan Afganist�n Афганистан 阿富汗 أفغانستان Algeria Alg�rie Argelia Алжир 阿尔及利亚 الجزائر
How could I load all country names correctly in Stata 14?
Comment