Windows Phone character-encoding

后端 未结 2 1004
野性不改
野性不改 2020-12-10 21:30

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?<

2条回答
  •  半阙折子戏
    2020-12-10 22:04

    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.

提交回复
热议问题