[-AI-] SQLite 與 utf-8 中文的問題

看板EzHotKey作者時間15年前 (2009/01/24 19:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
我要使用 AutoIt 去連一個已經存有 utf-8 中文的 sqlite 資料庫 但我怎麼試,AutoIt 讀出來的中文訊息就是不對 我不大確定 AutoIt 現在對中文的支援到什麼程度 希望有人有經驗的可以幫忙一下,非常感謝 下面附上我用來連資料庫的 code #include <SQLite.au3> #include <SQLite.dll.au3> Local $hQuery, $aRow, $path $path = @ScriptDir & "\tmp.sqlite" _SQLite_Startup () _SQLite_Open ($path) _SQLite_Exec (-1, "PRAGMA encoding = 'UTF-8';") _SQlite_Query (-1, "SELECT * FROM data;", $hQuery) While _SQLite_FetchData ($hQuery, $aRow) = $SQLITE_OK $aRow[1] = BinaryToString($aRow[1], 4) ConsoleWrite($aRow[0] & " | " & $aRow[1] & @CRLF) WEnd _SQLite_Close() _SQLite_Shutdown() -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.115.182.164
文章代碼(AID): #19UlO7LH (EzHotKey)
文章代碼(AID): #19UlO7LH (EzHotKey)