How to detect Chinese in a string?

2008-10-12 Thread lookon
I have a string a(for example, a='中文Chinese'), and I want to know whether there are some Chinese in the string. Can someone tell me how to do it? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to detect Chinese in a string?

2008-10-12 Thread Peter Otten
lookon wrote: I have a string a(for example, a='中文Chinese'), and I want to know whether there are some Chinese in the string. Can someone tell me how to do it? Thanks! See http://mail.python.org/pipermail/python-list/2008-September/509738.html Instead of re.findall(...) you may use if

Re: How to detect Chinese in a string?

2008-10-12 Thread lookon
Get it. Thanks Peter Otten wrote: lookon wrote: I have a string a(for example, a='中文Chinese'), and I want to know whether there are some Chinese in the string. Can someone tell me how to do it? Thanks! See http://mail.python.org/pipermail/python-list/2008-September/509738.html