[Win10 UWP, VS2015RC] System.Text.Encoding.GetEncoding raise exception RRS feed

  • Question

  • Hi,

    I have a trouble with System.Text.GetEncoding at windows universal  prooject.

    Following code raise an exception "'shift-jis' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.". This snippet use "shift-jis", but also other encoding names cause same exception like as "Windows-1252", etc.

                System.Text.Encoding enc = null;
                    enc = System.Text.Encoding.GetEncoding("shift-jis");
                catch(Exception ex)

    Here is an matrix of ok/fail. only VS2015RC UWP project fails.

    VS2013, StoreApp project : OK

    VS2015CTP6+Win10SDK, Windows universal project : OK

    VS2015RC+SDK10069, Win8.1 StoreApp project : OK

    VS2015RC+SDK10069, Windows Universal Project : Fail

    I know that .NET 4.6 Preview have some restrictions about encoding, but UWP use ".NET for Windows Store apps", the .NET version  is 4.5.1.  I'm confusing..

    Thanks in advance,


    • Edited by pnp0a03_MVP Saturday, May 2, 2015 2:34 AM Correction namespace at subject
    Saturday, May 2, 2015 2:32 AM