Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone character-encoding

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.

like image 264
Ferhat Kortak Avatar asked Jul 22 '26 20:07

Ferhat Kortak


1 Answers

To use the program, just type the encoding name and it will generate the class like so:

http://i.imgur.com/U559Fnv.png

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.

like image 74
Esailija Avatar answered Jul 28 '26 01:07

Esailija



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!