2013-07-23

I have to convert a large amount of characters to their Unicode Code Point equivalents. I was using the following code to do this conversion:

This works for the more normal characters, but then I have characters like these ǎ where the actual string is comprises 2 chars a (U-0061) and '̌' (U-030C). The function ConverToUtf32(string, int) there only returns the first (or the other depending on the index) character where I was actually expecting U-0103. Using ConvertToUtf32(char, char) does not work since that requires chars at a higher code point.

Is there another function that I can use to convert strings to their code points, or maybe a calculation that I can perform?

Show more