hello friends,
      it works when create chinese string by assigning
 
             >>>s = '中文'
             >>>s
             u'\u4E20\u6587' 
 
    but if read the string from an txt file, the result is another one:
 
           >>>file = open('file.txt')
           >>>s = file.readline()
           >>>s
           '\xD6\xD0\xCE\xC4'
 
    so ,why it can't create unicode string using file.readline() ?
 
    my environment:
                 windows xp
                 jdk1.4.1
                 jython2.1
                               
   thanks in advance.
 
best regards
  
              lee



Do You Yahoo!?
惠普TT游戏剧,玩游戏,中大奖!