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

Non-latin export problem (cyrillic, utf-8 etc.) #1

Open
melnikovalex opened this issue Aug 31, 2017 · 0 comments
Open

Non-latin export problem (cyrillic, utf-8 etc.) #1

melnikovalex opened this issue Aug 31, 2017 · 0 comments

Comments

@melnikovalex
Copy link
Member

There is a problem with export shp + dbf with non-ascii symbols.

The exception is;

Runtime error (EncoderFallbackException): 'ascii' codec can't decode byte 0 in position 0: ordinal not in range
Traceback:
  line 1031, in record, "...\shapefile\shapefile.py"
  line 203, in write_shapefile, "<string>"
  line 234, in write_many, "<string>"
  line 248, in script
  line 1074, in _Writer__dbfRecord, "...\shapefile\shapefile.py"

Linked discussions:
http://www.grasshopper3d.com/forum/topics/python-default-encoding-how-to-set-utf-8
https://discourse.mcneel.com/t/grasshopper-python-default-encoding-how-to-set-utf-8/4997

In current build all text data converted to ascii in "ignore" mode (all non-ascii symbols being replaced with question tag "?")

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

1 participant