kevin-funderburg / alfred-microsoft-onenote-navigator

Use Alfred to browse through your Microsoft OneNote notebooks, section groups and sections and then jump to them instantly.
Other
69 stars 6 forks source link

"ascii' codec can't decode byte 0xe6 in position 49: ordinal not in range(128) #6

Closed xzy9565 closed 4 years ago

xzy9565 commented 4 years ago

Hi there, I have some Chinese characters inside of my notebook. The section name in Chinese is fine. image

However, when I go into this section, it'll show this error: image

The pages inside this section have some Chinese titles as well as contents.

Is it possible to solve this issue?

Adol1111 commented 4 years ago

set utf-8 at getNotebooks.py

reload(sys)
sys.setdefaultencoding('utf-8')
xzy9565 commented 4 years ago

Thanks for your solution. Problem solved.