本帖最后由 nmgwddj 于 2011-2-4 18:38 编辑
如题,默认的读取中文都是乱码。。
十分抱歉,题目弄出错别字了。
已经解决。感谢bing614Func SQLiteRead()
;_GUICtrlListView_DeleteAllItems(GUICtrlGetHandle($ListView1))
_SQLite_Open($SQLite_Data_Path)
_SQLite_Query(-1, "SELECT * FROM tbl_Package ORDER BY pkgid DESC;", $hQuery)
While _SQLite_FetchData($hQuery, $aRow, $fBinary = False) = $SQLITE_OK
$bts = BinaryToString($aRow[1], 1)
GUICtrlCreateListViewItem($aRow[0] & '|' & $bts & '|' & $aRow[2] & '|' & $aRow[3], $ListView1)
WEnd
_SQLite_Close()
EndFunc ;==>SQLiteRead
|