Re: How to get the ascii code of Chinese characters?
many_years_afte r wrote:
assuming you mean "code point" rather than "ASCII code" (ASCII is a
specific encoding that *doesn't* include Chinese characters), "ord" is
what you want:
char = read_from_some_ input_device()
code = ord(char)
see:
</F>
many_years_afte r wrote:
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.
characters, then, I want to create a number. The same number will be
created if they input the same Chinese characters.
specific encoding that *doesn't* include Chinese characters), "ord" is
what you want:
char = read_from_some_ input_device()
code = ord(char)
see:
</F>
Comment