I retrieve a stream. Everything works fine but the encoding of Umlaute (ä,ö,ü,ß).
What is
NäüßÖ´sas so viele Umlaute
becomes
NäüÃôsas so viele Umlaute
I tried Ascii-Encoding and a few other ones as the following source shows.
ASCIIEncoding encoder = new ASCIIEncoding();
Encoding enc = Encoding.GetEncoding(28591);
string response = enc.GetString(message, 0, bytesRead);
Which one will solve my problem?
I don't know anything at all about .NET, but I do know that this pattern of mojibake:
äüÃÃÂ
is characteristic of UTF-8 being misinterpreted as ISO-8859-1. So try processing your input as UTF-8.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With