Skip to content
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

Problem with Chinese unicode encoded commet in *.dna file #44

Open
eeyrw opened this issue Dec 22, 2015 · 2 comments
Open

Problem with Chinese unicode encoded commet in *.dna file #44

eeyrw opened this issue Dec 22, 2015 · 2 comments

Comments

@eeyrw
Copy link

eeyrw commented Dec 22, 2015

I use python 3.4.
Generating code with the error info:

Traceback (most recent call last):
File "ribosome.py", line 371, in
line = dnastack[-1][0].readline()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 285: illegal
multibyte sequence

image

TAS57x7_Param_c_tpl.py.dna.txt

My *.dna file has been attached.

@sustrik
Copy link
Owner

sustrik commented Dec 22, 2015

I must admit I am out of my depth here. This boils down to how Python handles unicode. AFAIK this is different in Python2 and Python3. Anyway, I would try to simplify it to a minimal example (few lines of Python code) and then ask at stackoverflow to get an opinion from Python experts.

@eeyrw
Copy link
Author

eeyrw commented Dec 23, 2015

Thank for your reply. I change my comments to English temporarily and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants