T
ThunderMusic
Hi,
I have to go from Byte() to String, do some processing then reconvert the
String to byte() but using ascii format, not unicode.
I currently use a stream to write the char() (BinaryWriter.Write) from the
string (String.ToCharArray), then use Stream.ToArray to convert everything
to byte(). It works most of the time, but it happens that an error tells me
something like "Additional information: Caractère de substitution faible
trouvé non précédé d'un substitut étendu à l'index : 409. Cette entrée peut
ne pas se trouver dans ce codage ou peut ne pas contenir des caractères
Unicode (UTF-16) valides." in french, so it could look something like
"Additional information: weak substitution character not preceded with an
extended substiture at the index: 409. The entry may not be found in this
coding or may not contain valid Unicode (UTF-16) characters." in english.
Can someone tell me what does it mean and what is the solution? is there
another way to do what I'm doing (I hope there is)?
Thanks
ThunderMusic
I have to go from Byte() to String, do some processing then reconvert the
String to byte() but using ascii format, not unicode.
I currently use a stream to write the char() (BinaryWriter.Write) from the
string (String.ToCharArray), then use Stream.ToArray to convert everything
to byte(). It works most of the time, but it happens that an error tells me
something like "Additional information: Caractère de substitution faible
trouvé non précédé d'un substitut étendu à l'index : 409. Cette entrée peut
ne pas se trouver dans ce codage ou peut ne pas contenir des caractères
Unicode (UTF-16) valides." in french, so it could look something like
"Additional information: weak substitution character not preceded with an
extended substiture at the index: 409. The entry may not be found in this
coding or may not contain valid Unicode (UTF-16) characters." in english.
Can someone tell me what does it mean and what is the solution? is there
another way to do what I'm doing (I hope there is)?
Thanks
ThunderMusic