Hello:
Under win32 XP y select python command line and execute next code with
results indicated:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on
Type "help", "copyright" , "credits" or "license" for more information.
u'\xe1\xe9\xed\ xf3\xfa'
áéíóú
'\xe1\xe9\xed\x f3\xfa'
ßÚݾ·
<type 'str'>
<type 'unicode'>
using python IDLE I repeat the code, but get next differen result:
IDLE 1.2
u'\xe1\xe9\xed\ xf3\xfa'
áéíóú
'\xe1\xe9\xed\x f3\xfa'
áéíóú
<type 'str'>
<type 'unicode'>
What do you think is happending and how can I solve this ? The IDLE
looks fine but command line has problems.
Under win32 XP y select python command line and execute next code with
results indicated:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on
Type "help", "copyright" , "credits" or "license" for more information.
>>u=u'áéíóú'
>>u
>>u
>>print u
>>a=u.encode('l atin-1')
>>a
>>a
>>print a
>>type(a)
>>type(u)
>>>
IDLE 1.2
>>u=u'áéíóú'
>>u
>>u
>>print u
>>a=u.encode('l atin-1')
>>a
>>a
>>print a
>>type(a)
>>type(u)
>>>
looks fine but command line has problems.
Comment