看板 EzHotKey 關於我們 聯絡資訊
我要使用 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