我有一个简单的批处理,它将特定的记录插入到sql db中:
set /P theuserinput="Enter the filename: "
sqlite3 test "insert into films (title, date, start_time) values ('%theuserinput%', '%date%', '%time%');" 它可以很好地处理拉丁文件名,但是当我尝试将它用于西里尔文件名时,它会插入一些无法读取的字符。
我只需要在SQLite Maestro中查看那些西里尔文记录,而不是在sqlite3中查看
发布于 2012-05-11 16:40:56
您可以尝试在执行sqlite插入到西里尔文pgae chcp 855之前更改代码页。
或65001 UTF-8,但随后需要阻止您的命令
set /P theuserinput="Enter the filename: "
(
chcp 65001
sqlite3 test "insert into films (title, date, start_time) values ('%theuserinput%', '%date%', '%time%');"
chcp 850
)https://stackoverflow.com/questions/10529992
复制相似问题