New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite3.ProgrammingError with non-english attachments #243
Comments
This is a bytestring/unicode problem, and one that's probably going to be difficult to fix. Bytestrings can't reliably handle characters outside of the ASCII character space, while unicode strings can. In Python 2.7, the If you look in the for dirpath, dirnames, filenames in os.walk(dst): That I don't have a good solution to this problem on Python 2, but if you can switch to Python 3, I would highly suggest doing so. I just tested this example on Python 2 and Python 3, and while I was able to reproduce the failure on Python 2, switching to Python 3 made it go away. Give it a try! |
@singingwolfboy I have no problem with using Python 3, I actually prefer using it. But I believe mitsuhiko aims to support Python 2 as well. |
I have edited /Users/item4/Projects/lektor/lektor/builder.py and added a single line
after the following line
Ref Link : http://hakanu.net/sql/2015/08/25/sqlite-unicode-string-problem/ |
@haseenapa Thanks for solution. I will make PR. |
item4 commentedJul 20, 2016
Python version: 2.7.11
Lektor version: master branch
Let's make simple and same situation
$ lektor quickstart
and$ cd
to project dir. (in this example, project name is test. other fields must type enter to skip with yes)$ touch content/blog/first-post/미츠히코.txt
(미츠히코
is Korean alphabet of mitsuhiko)$ lektor server
Traceback
The text was updated successfully, but these errors were encountered: