Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 994
Brannon Avatar asked Nov 04 '22 17:11

Brannon


1 Answers

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.

like image 120
Filip Skakun Avatar answered Nov 08 '22 03:11

Filip Skakun