Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Translation of UTF8 stream to sequence of ASCII characters

Hello,
I need an advice how to translate UTF8 binary stream of characters to ASCII characters. Translation will depends on the Locale (language) used.
For example, if UTF8 character (C381 in HEX) is used in Czech language I will need to translate it to two ASCII characters Ae; if the same character used in French language I will need to translate it to character A. Binary Stream will have some ACSII characters which will not need any translation as well.
Please, advise.
Thank you.
abelkin
[515 byte] By [abrlkin] at [2007-11-11 8:01:43]