{ "info": { "author": "miraculixx", "author_email": "miraculixx at github", "bugtrack_url": null, "classifiers": [], "description": "utf8forgood\n-----------\n\n**Tired of Python's `UnicodeDeocodeError, ascii codec can't decode?`**\n\nHere's how to fix it, once and for all.\n\n1. `$ pip install utf8forgood`\n2. in your main program, add\n\n ```\n import utf8forgood\n ```\nIf you like it, make the change permanent in your sitecustomize.py:\n\n ```\n # /path/to/site-packages/sitecustomize.py\n import utf8forgood\n ```\n\nTo find the path to `sitecustomize.py`, run `python -m site` or read up on\nthe [site-specific configuration hook][8].\n\nWhy?\n----\n\nIn general to the above, the fastest remedy is probably trying out the following, in this order:\n\n1. Use `PYTONIOENCODING=UTF-8 python /path/to/program.py`\n2. Use the [`sys.setdefaultencoding`][1] hack. That is, unless you care [what others say][2]\n3. Write your own import function to [convert data][3] appropriately, which is generally the [recommended way][4].\n\nAfter [much consideration][7] and trying option 3 I finally concluded that option 2\nis the straight forward way and usually [just does what you want][5], on the off-chance of [getting yourself in trouble][6].\n\n [1]: http://stackoverflow.com/a/17628350/890242\n [2]: http://stackoverflow.com/questions/28657010/dangers-of-sys-setdefaultencodingutf-8\n [3]: http://stackoverflow.com/a/28760303/890242\n [4]: http://stackoverflow.com/a/34378962/890242\n [5]: http://stackoverflow.com/a/29558302/890242\n [6]: http://stackoverflow.com/a/29561747/890242\n [7]: http://stackoverflow.com/a/27745947/890242\n [8]: https://docs.python.org/2/library/site.html", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "utf8forgood", "package_url": "https://pypi.org/project/utf8forgood/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/utf8forgood/", "project_urls": null, "release_url": "https://pypi.org/project/utf8forgood/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "\"Simple is better than complex\", Tim Peters, The Zen Of Python", "version": "0.1.4" }, "last_serial": 2331272, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "d53d2d71029691cd9050d2d6801f68df", "sha256": "be05b09fd3b58c8937f1eec69f312e1c6497373429d6825f2b858758cf4f04e8" }, "downloads": -1, "filename": "utf8forgood-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d53d2d71029691cd9050d2d6801f68df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1993, "upload_time": "2016-02-13T19:05:41", "url": "https://files.pythonhosted.org/packages/2a/da/69cac9e75198851fb9594b14c68114d37bc201ee161eb15a2af2e4e3cf65/utf8forgood-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "7f2b98a5d488714ee119ba53be0d9c30", "sha256": "6542c088ead7f3602c3e0a565891565d3aab5d479365679c7d51aac2590dbde7" }, "downloads": -1, "filename": "utf8forgood-0.1.4.tar.gz", "has_sig": false, "md5_digest": "7f2b98a5d488714ee119ba53be0d9c30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2028, "upload_time": "2016-09-08T12:09:57", "url": "https://files.pythonhosted.org/packages/10/e3/a19a4f603f4dc844730cd6bc7091ee6ba7f13a31aa85f8a503b8c6f7ca5e/utf8forgood-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f2b98a5d488714ee119ba53be0d9c30", "sha256": "6542c088ead7f3602c3e0a565891565d3aab5d479365679c7d51aac2590dbde7" }, "downloads": -1, "filename": "utf8forgood-0.1.4.tar.gz", "has_sig": false, "md5_digest": "7f2b98a5d488714ee119ba53be0d9c30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2028, "upload_time": "2016-09-08T12:09:57", "url": "https://files.pythonhosted.org/packages/10/e3/a19a4f603f4dc844730cd6bc7091ee6ba7f13a31aa85f8a503b8c6f7ca5e/utf8forgood-0.1.4.tar.gz" } ] }