[Python-Dev] [Python-checkins] r86530 - python/branches/py3k/Doc/howto/unicode.rst
Ezio Melotti
ezio.melotti at gmail.com
Fri Nov 19 23:05:51 CET 2010
Hi,
On 19/11/2010 18.10, alexander.belopolsky wrote:
> Author: alexander.belopolsky
> Date: Fri Nov 19 17:09:58 2010
> New Revision: 86530
>
> Log:
> Issue #4153: Updated Unicode HOWTO.
>
> Modified:
> python/branches/py3k/Doc/howto/unicode.rst
>
> Modified: python/branches/py3k/Doc/howto/unicode.rst
> ==============================================================================
> --- python/branches/py3k/Doc/howto/unicode.rst (original)
> +++ python/branches/py3k/Doc/howto/unicode.rst Fri Nov 19 17:09:58 2010
>
>
> [...]
>
>
> -Python 2.x's Unicode Support
> -============================
> +Python's Unicode Support
> +========================
>
> Now that you've learned the rudiments of Unicode, we can look at Python's
> Unicode features.
> @@ -265,7 +263,7 @@
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0:
> unexpected code byte
> >>> b'\x80abc'.decode("utf-8", "replace")
> - '\ufffdabc'
> + '�abc'
Apparently 'make latex' and 'make all-pdf' don't like this char.
> >>> b'\x80abc'.decode("utf-8", "ignore")
> 'abc'
>
> [...]
Best Regards,
Ezio Melotti
More information about the Python-Dev
mailing list