-
Notifications
You must be signed in to change notification settings - Fork 43
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
write_sets with id1 in Chinese get string lost #87
Comments
Thank you @masonacezllk . Would you be so kind and please prepare a Pull request with the proposed corrections and also a test case? |
test.zip
|
I guess this needs work to be prepared as a PR. Any volunteers? |
@masonacezllk I have now spent some time on this issue. The problem is that by the uff/unv standard the file should be in ISCII an therefore we here: pyuff/pyuff/datasets/dataset_58.py Line 908 in ac669b9
encode the data back to ISCII. The non-ascii characters are lost at this step. We do support reading non-ascii characters, but not writing. This is a broader issue and I will open a new one. |
when data block with string in Chinese like id1='左前方向:S', write_sets lost Chinese string. How to modify this code :
for k, v in dset.items():
if type(v) == str:
dset[k] = v.encode("utf-8").decode('ascii','ignore')
to correct Chinese string?
The text was updated successfully, but these errors were encountered: