On Thu Oct 13 11:27:00 EDT 2011, [email protected] wrote:
> 
> > latin-1 bytes 00-FF turn into unicode runes 00-FF.
> 
> Then why doesn't it Just Work? Now I am confused (again).

unicode codepoints (runes) are abstract.  we need to deal with encodings.
the encoding utf-8 uses is not a single byte for anything above 0x7f.
so essentially the encoding phase would be name[i] = (uchar)r.  the decoding 
phase
would be r = (Rune)name[i].

i think you can see the decoding in action in upas/fs.
but you can probablly write the code faster.

- erik

Reply via email to