encodage problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

encodage problem

FRANCOIS L.
hello,

-----
Python 2.6.5+ (release26-maint, Jul  6 2010, 12:58:20)
[GCC 4.4.4] on linux2
IDLE 2.6.5      ==== No Subprocess ====
 >>>import sys
 >>> u"é"
u'\xc3\xa9'
 >>> print u"é"
é
 >>> sys.stdin.encoding
'utf-8'
------

It seems to be a mixture of utf-8 and latin-1

In a terminal I got:

Python 2.6.5+ (release26-maint, Jul  6 2010, 12:58:20)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> sys.stdin.encoding
'UTF-8'
 >>> u"é"
u'\xe9'
 >>> print u"é"
é

Thanks for your help.

Laurent
debian squeeze



_______________________________________________
IDLE-dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/idle-dev
Reply | Threaded
Open this post in threaded view
|

Re: encodage problem

Terry Reedy
On 8/14/2010 7:29 AM, FRANCOIS L. wrote:

> hello,
>
> -----
> Python 2.6.5+ (release26-maint, Jul 6 2010, 12:58:20)
> [GCC 4.4.4] on linux2
> IDLE 2.6.5 ==== No Subprocess ====
>  >>>import sys
>  >>> u"é"
> u'\xc3\xa9'
>  >>> print u"é"
> é
>  >>> sys.stdin.encoding
> 'utf-8'
> ------
>
> It seems to be a mixture of utf-8 and latin-1
>
> In a terminal I got:
>
> Python 2.6.5+ (release26-maint, Jul 6 2010, 12:58:20)
> [GCC 4.4.4] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import sys
>  >>> sys.stdin.encoding
> 'UTF-8'
>  >>> u"é"
> u'\xe9'
>  >>> print u"é"
> é
>
> Thanks for your help.

I suggest you ask a question and direct it to python-list. I have no
idea what you want.

--
Terry Jan Reedy


_______________________________________________
IDLE-dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/idle-dev