If I recive some data from a website I get the following string:
Peter Tester â‚‹ Max Mustermann
The meta infos of the homepage shows me that the encoding is UTF-8, I wrote a little function to convert UTF-8 to Base64 (Base64 is the correct charset for default C# projects or?)
private String UTF8toBase64(string input)
{
var bytes = Encoding.UTF8.GetBytes(input);
return Convert.ToBase64String(bytes);
}
But this function returns a string like this:
"S3lsZSBFZG11bmQgJm5ic3A7IMOi4oCa4oC5ICZuYnNwOyZuYnNwO0ppcmkgVmVzZWx5"