Python ascii codec ordinal not in range


















Improve this question. KevinK KevinK 21 1 1 silver badge 2 2 bronze badges. The error is coming from your call to 'str' on the value. Just call unicode on the row. I'm aware.. Have you considered editing the input file? You don't have so much data that correcting it is not an option. Of course, there are many considerations that you know about and I don't. Add a comment. Active Oldest Votes. Improve this answer. For example: import io with io. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Table 'mydbf. Suraj Rao Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science.

Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.

Another invaluable article on the subject is Joel Spolsky's Minimun Unicode knowledge post. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Unicode error Ordinal not in range Ask Question. Asked 9 years, 3 months ago.

Active 7 years, 3 months ago. Viewed 14k times. Improve this question. Add a comment. Active Oldest Votes. Improve this answer.



0コメント

  • 1000 / 1000