SQLite Forum

[BUG] Precompiled sqlite shell for windows can't open filenames with unicode chars
Login
Try chcp 65001

SQLite shell uses utf-8 internally, but converts between it and active code page of the console when using console functions.

chcp 65001 sets active code page of the current console window to utf-8.


```
c:\TEMP>chcp 65001
Active code page: 65001

c:\TEMP>sqlite3.exe 你好世界.db
SQLite version 3.35.0 2021-02-26 15:20:17
Enter ".help" for usage hints.
sqlite> select * from sqlite_master;
table|xx|xx|2|CREATE TABLE xx (i integer primary key, x text)
sqlite>
```