来自http://tunps.com/sqlite3-garbled-character

1. 在CMD窗口下输下:chcp 65001 确定

2. 在命令行标题栏上点击右键,选择【属性】 -【字体】,将字体修改为【Lucida Console】 确定

解释一下,因为sqlite3数据存储采用UTF-8。中文windows xp的cmd默认code page是1521

C:\Documents and Settings\Administrator>chcp
Active code page: 1251

通过chcp 65001修改为UTF-8。code page(代码页)是字符集的另外一个术语(term)。

具体各种Code page参考:http://en.wikipedia.org/wiki/Code_page

相关文章:

  • 2022-01-02
  • 2021-06-05
  • 2021-12-05
  • 2021-04-09
  • 2021-09-29
  • 2022-02-25
  • 2021-09-19
  • 2021-04-03
猜你喜欢
  • 2022-01-11
  • 2021-09-25
  • 2021-08-11
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案