Converting string with UTF-8 to Unicode?

Laura Creighton lac at strakt.com
Tue Feb 11 02:49:05 EST 2003


> Grumfish <nobody at nowhere.com> wrote:
> > Thank you. Another question, what encodings does Python come with?
> 
> #v+
> C:\>python
> Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import encodings
> >>> help(encodings)
> NAME
>     encodings - Standard "encodings" Package
> 
> FILE
>     c:\python22\lib\encodings\__init__.py
> 
> DESCRIPTION
>         Standard Python encoding modules are stored in this package
>         directory.
> [...]
>     cp037
>     cp1006
> [...]
>     hex_codec
>     iso8859_1
> [...]
>     iso8859_15
>     koi8_r
> [...]
>     utf_16
>     utf_16_be
>     utf_16_le
>     utf_7
>     utf_8
>     uu_codec
>     zlib_codec
> #v-
> 
> -- Gerhard
> -- 
> http://mail.python.org/mailman/listinfo/python-list

There are some more that aren't standard but you can install yourself.  What
language(s)/encodings are you looking for, Grumfish?

Laura





More information about the Python-list mailing list