Re: A question about unicode() function

2007-01-02 Thread JTree
hi, I just removed the unicode() method from my codes. As John Machin said, I had an wrong understanding of unicode and ascii. Paul Watson wrote: > JTree wrote: > > Thanks everyone! > > > > Sorry for my ambiguous question. > > I changed the codes and now it works fine.

Re: A question about unicode() function

2007-01-01 Thread JTree
Thanks everyone! Sorry for my ambiguous question. I changed the codes and now it works fine. JTree wrote: > Hi,all > I encountered a problem when using unicode() function to fetch a > webpage, I don't know why this happenned. > My codes and error messages are: >

Re: A question about unicode() function

2006-12-31 Thread JTree
es it have some problems with asian encoding support? Thanks! On Dec 31 2006, 9:30 pm, "Felipe Almeida Lessa" <[EMAIL PROTECTED]> wrote: > On 31 Dec 2006 05:20:10 -0800, JTree <[EMAIL PROTECTED]> wrote: > > > def funUrlFetch(url): > > lambda url:urllib

A question about unicode() function

2006-12-31 Thread JTree
Hi,all I encountered a problem when using unicode() function to fetch a webpage, I don't know why this happenned. My codes and error messages are: Code: #!/usr/bin/python #Filename: test.py #Modified: 2006-12-31 import cPickle as p import urllib import htmllib import re import sys def