作者weegee (weegee)
看板C_and_CPP
標題[問題] 單位符號輸出
時間Sat Oct 10 18:00:13 2015
開發平台(Platform): BCB6
額外使用到的函數庫(Library Used): 無
問題(Question): 希望能在label中輸出℃
餵入的資料(Input):
1. Label1->Caption = "°C";
2. Label2->Caption = "\u2103";
預期的正確結果(Expected Output):
1和2皆顯示℃
錯誤結果(Wrong Output):
如圖顯示
http://miupix.cc/pm-RR63I6
上面的亂碼為1的結果
下面的亂碼為2的結果
補充說明(Supplement):
我測試了三台電腦
只有其中一台Win7 x86有問題
各位高手大大有沒有類似的經驗呢?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.59.165.169
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1444471216.A.BCE.html
→ sos0214: WideString str = "\u2103"; 10/10 18:18
→ sos0214: Label1->Caption = str; 10/10 18:18
→ weegee: sos0214大...結果同2 10/10 18:58
→ tomnelson: 我猜是Label元件字型問題... 10/10 20:35
推 noodleT: 將度C複製到記事本,存檔時不要轉成Unicode,然後再用fope 10/15 22:38
→ noodleT: n開檔讀取,應該就可以了 10/15 22:38