Search code examples
c#.netwindows-runtimecurrentculture

WinRT equivalent of these .Net culture methods?


What is the WinRT equivalent of these items from the .NET framework?

CultureInfo.CurrentCulture.LCID
Encoding.GetEncoding(int codePage)
Encoding.CodePage

Solution

  • AFAIK LCID was gone in Silverlight too, at least on Windows Phone and if you really needed it - you had to grab a table from the documentation like here.

    Same thing with encoding - you would need to map the names to code pages, e.g. with the table from here.