How to get the ascii code of Chinese characters?
Ben Finney
bignose+hates-spam at benfinney.id.au
Sat Aug 19 22:58:51 EDT 2006
"many_years_after" <shuanyu at gmail.com> writes:
> Well, people may input from keyboard. They input some Chinese
> characters, then, I want to create a number. The same number will be
> created if they input the same Chinese characters.
You seem to be looking for a hash.
<URL:http://docs.python.org/lib/module-md5>
<URL:http://docs.python.org/lib/module-sha>
If not, please tell us what your *purpose* is. It's not at all clear
from your questions what you are trying to achieve.
--
\ "I was in a bar the other night, hopping from barstool to |
`\ barstool, trying to get lucky, but there wasn't any gum under |
_o__) any of them." -- Emo Philips |
Ben Finney
More information about the Python-list
mailing list