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

html2text throws ValueError on invalid unicode entities #74

Closed
nikolas opened this issue Jun 4, 2015 · 3 comments
Closed

html2text throws ValueError on invalid unicode entities #74

nikolas opened this issue Jun 4, 2015 · 3 comments

Comments

@nikolas
Copy link
Contributor

nikolas commented Jun 4, 2015

Using html2text 2015.4.14, python 2.7.9 on Ubuntu 15.06, x86_64:

ipdb> p html2text.html2text('B�r')
*** ValueError: ValueError('unichr() arg not in range(0x110000) (wide Python build)',)
ipdb> p html2text.html2text(u'B�r')
*** ValueError: ValueError('unichr() arg not in range(0x110000) (wide Python build)',)

Possibly addressed by PR #60?

@nikolas nikolas changed the title html2text throws ValueError html2text throws ValueError on invalid unicode entities Jun 4, 2015
@theSage21
Copy link
Collaborator

@nikolas What should this unicode entity be translating into?

@nikolas
Copy link
Contributor Author

nikolas commented Jun 17, 2015

probably an empty string since that unicode entity doesn't exist

theSage21 added a commit to theSage21/html2text that referenced this issue Jun 17, 2015
This was referenced Jun 17, 2015
@Alir3z4
Copy link
Owner

Alir3z4 commented Jun 17, 2015

Fixed in #79

@Alir3z4 Alir3z4 closed this as completed Jun 17, 2015
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

3 participants