[EMAIL PROTECTED] wrote: > Thank you but there is still a problem. > > |>>> s='euckr="\xc7\xd1";uni=u"\xc7\xd1"' > |>>> su=s.decode('euc-kr') > |>>> su > |u'euckr="\ud55c";uni=u"\ud55c"'
su[7] is a non-ascii character inside the byte string euckr > |>>> c=compile(su,'','single') > |>>> exec c > |>>> euckr,uni > |('\xed\x95\x9c', u'\ud55c') > |>>> > > As you see the single's result is turned into UTF-8 encoding. See my previous message. Non-ascii characters in byte strings are deprecated. Serge. -- http://mail.python.org/mailman/listinfo/python-list