2009/2/9 minh thu <[email protected]>:

>
> Anyway, I'd like to get my utf-8 string to C but in ascii (or latin1).
>
> How can do this ?

You can't (in general).
If the data just happens to be ascii, then your utf-8 string will BE
ascii (there is no way to tell the difference). If it just happens to
be in the range of latin-1(all codepoints 0-255), then you have to
convert it to latin-1. But otherwise, you are stuck.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to