👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
as3:~/ngokevin-site# nano content/blog/20140114_test-chinese.mkd
as3:~/ngokevin-site# wok
Traceback (most recent call last):
File "/usr/local/bin/wok", line 4, in
Engine()
File "/usr/local/lib/python2.7/site-packages/wok/engine.py", line 104, in init
self.load_pages()
File "/usr/local/lib/python2.7/site-packages/wok/engine.py", line 238, in load_pages
p = Page.from_file(os.path.join(root, f), self.options, self, renderer)
File "/usr/local/lib/python2.7/site-packages/wok/page.py", line 111, in from_file
page.meta["content"] = page.renderer.render(page.original)
File "/usr/local/lib/python2.7/site-packages/wok/renderers.py", line 46, in render
return markdown(plain, Markdown.plugins)
File "/usr/local/lib/python2.7/site-packages/markdown/init.py", line 419, in markdown
return md.convert(text)
File "/usr/local/lib/python2.7/site-packages/markdown/init.py", line 281, in convert
source = unicode(source)
UnicodeDecodeError: "ascii" codec can"t decode byte 0xe8 in position 1: ordinal not in range(128). -- Note: Markdown only accepts unicode input!
How to fix it?
In some other python-based static blog apps, Chinese post can be published successfully. Such as this app: http://github.com/vrypan/bucket3. In my site http://bc3.brite.biz/, Chinese post can be published successfully.
👻 Read also: what is the best laptop for engineering students?
We hope this article has helped you to resolve the problem. Apart from How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”, check other ast Python module-related topics.
Want to excel in Python? See our review of the best Python online courses 2023. If you are interested in Data Science, check also how to learn programming in R.
By the way, this material is also available in other languages:
- Italiano How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Deutsch How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Français How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Español How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Türk How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Русский How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Português How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Polski How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- Nederlandse How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- 中文 How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- 한국어 How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- 日本語 How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
- हिन्दी How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte”
Abu Dhabi | 2023-03-29
Simply put and clear. Thank you for sharing. How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte” and other issues with Python functions was always my weak point 😁. I am just not quite sure it is the best method
Massachussetts | 2023-03-29
Thanks for explaining! I was stuck with How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte” for some hours, finally got it done 🤗. Will get back tomorrow with feedback
San Francisco | 2023-03-29
I was preparing for my coding interview, thanks for clarifying this - How to fix: “UnicodeDecodeError: “ascii” codec can”t decode byte” in Python is not the simplest one. Checked yesterday, it works!