My code is Encoding.GetEncoding("iso-8859-9"); in my Windows Phone project. But "iso-8859-9" is not supported on Windows Phone. How can I fix this problem?
http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator
I also found this link but I don't know how to use it.
To use the program, just type the encoding name and it will generate the class like so:

Then make a file for the class somewhere (Copypaste the code generated from the program) and start using it:
//Instead of
Encoding enc = Encoding.GetEncoding("iso-8859-9");
//do this
Encoding enc = new ISO88599Encoding();
//Proceed exactly the same
The code generated is too long to copypaste here but hopefully you manage with these instructions.
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