I have a text written with al kinds of weird characters, like ŸŞşȘș€ÀÈÉÌÒÓÙàèéìòóùºª«»€ and I am trying to convert them to their normal equivalents, SAEIOUaeiou etc. I have tried this in a number of ways, but I keep getting mixed results, some work, some don't. This is what I've done so far:
byteArray1 = UnicodeEncoding.GetEncoding(1250).GetBytes(charArray); byteArray2 = UnicodeEncoding.GetEncoding(852).GetBytes(charArray); byteArray3 = UnicodeEncoding.GetEncoding(737).GetBytes(charArray); resultArray1 = UTF7Encoding.GetEncoding(1250).GetChars(byteArray1); resultArray2 = UTF7Encoding.GetEncoding(852).GetChars(byteArray2); resultArray3 = UTF7Encoding.GetEncoding(737).GetChars(byteArray3); Is there something simple and obvious (I doubt it) that I'm missing? Also, if I'm doing something really the wrong way, do tell.
Encoding.GetEncoding().