Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


string encodings invented and maintained by yelp

Subscribe to updates I use yelp_encodings

Statistics on yelp_encodings

Number of watchers on Github 8
Number of open issues 1
Main language Python
Average time to merge a PR about 1 hour
Open pull requests 0+
Closed pull requests 0+
Last commit almost 6 years ago
Repo Created over 6 years ago
Repo Last Updated almost 3 years ago
Size 237 KB
Organization / Authoryelp
Page Updated
Do you use yelp_encodings? Leave a review!
View yelp_encodings activity
View on github
Book a Mock Interview With Me (Silicon Valley Engineering Leader, 100s of interviews conducted)
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating yelp_encodings for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


Build Status

yelp_encodings contains an 'internet' encoding which is appropriate for dealing with poorly encoded bytes coming from internet clients. The internet encoding will always succeed in decoding any bytestring. This is most often useful for logging bad requests.


For a primer on pip and virtualenv, see the Python Packaging User Guide.

TL;DR: pip install yelp_encodings


Once you've registered the codec with python, you can use it anywhere in your app.

>>> from yelp_encodings import internet
>>> internet.register()

>>> euro = u''

>>> import json
>>> print json.dumps(dict(
...    utf8=euro.encode('UTF-8'),
...    cp1252=euro.encode('cp1252'),
...    unicode=euro,
... ), indent=4, sort_keys=True, encoding='internet')
    "cp1252": "\u20ac", 
    "unicode": "\u20ac", 
    "utf8": "\u20ac"

yelp_encodings open issues Ask a question     (View All Issues)
  • over 5 years docstring rot
  • over 6 years Support Python 3
yelp_encodings list of languages used
Other projects in Python