[問題] 關於UTF8格式的字串?
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC2008
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
用unsigned char text[] 存下的data,是UTF8格式的字串,請問如何將這
text轉成String^ 的型態,想要印在應用程式的表單上。
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
我是先將unsigned char text轉成 wchar_t[] text2的型態存放,
再用String str = gcnew String(text2)的方式。
但str印出的結果並不正確,請問各位大大有人可以幫我解惑嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.147.154.206
→
07/18 19:48, , 1F
07/18 19:48, 1F
→
07/18 19:50, , 2F
07/18 19:50, 2F
→
07/18 20:14, , 3F
07/18 20:14, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章