sql數據庫數據顯示問號 Stata中文字符顯示成問號,該怎么解決?
Stata中文字符顯示成問號,該怎么解決?在開始用unicode之前是不能打開任何數據庫的,否則Stata會提醒你data in memory would be lost 還有there must b
Stata中文字符顯示成問號,該怎么解決?
在開始用unicode之前是不能打開任何數據庫的,否則Stata會提醒你data in memory would be lost 還有there must be no data in memory]
cd "D:long term careCHARLSstatadatahousehold_and_community_questionnaire_data" 【先設置你的working directory】
unicode analyze psu.dta
(Directory ./bak.stunicode created please do not delete)
File summary (before starting):
1 file(s) specified
1 file(s) to be examined ...
File psu.dta (Stata dataset)
2 str# variables need translation
----------------------------------------------------------------------------------------------------------
File needs translation. Use unicode translate on this file.
File psu.dta needs translation
File summary:
1 file(s) need translation
【總結:Stata告訴你,你這個file需要轉換】
【這里就是讓Stata把數據轉換為支持中文的UTF-8,轉換完畢后,檢查數據,中文終于不是亂碼了,大功告成!】
excel導入paradox數據庫中文字符為亂碼,怎么才能變成中文?
1。select * from v$nls_parameters 查詢nls的參數,獲得數據庫服務器端的字符編碼 NLS_LANGUAGE NLS_CHARACTERSET 2。修改本地環(huán)境變量,設置 NLS_LANG = SIMPLIFIED CHINESE.ZHS16GBK //這個是我們的數據庫字符編碼 NLS_LANG格式: NLS_LANG = language_territory.charset 有三個組成部分(語言、地域和字符集),每個成分控制了NLS子集的特性。其中:language 指定服務器消息的語言。 territory 指定服務器的日期和數字格式。 charset 指定字符集 需要保證要設置客戶端字符集與服務器端字符集一致