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

Fixed wrong writing into csv because of wrong encoding #69

Merged
merged 3 commits into from
Oct 22, 2020

Conversation

Vitaly-Protasov
Copy link
Contributor

Fixed issue #50 and sub-problem:

  File ".\veniq\dataset_collection\augmentation.py", line 427, in <module>
    writer.writerow(i)
  File "C:\Users\Vitaly\Anaconda3\lib\encodings\cp1251.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 158-161: character maps to <undefined>

@Vitaly-Protasov Vitaly-Protasov changed the title fixed wrong saving by encoding Fixed wrong writing into csv because of wrong encoding Oct 22, 2020
@lyriccoder lyriccoder self-requested a review October 22, 2020 08:46
Copy link
Member

@lyriccoder lyriccoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to need encoding, it can be detected with utils.
Chinese encoding is not utf-8 only

Copy link
Member

@lyriccoder lyriccoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Vitaly-Protasov Vitaly-Protasov merged commit e90101c into master Oct 22, 2020
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

Successfully merging this pull request may close these issues.

2 participants