Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Language for Non-Unicode Programs

Tags:

c#

Anyone have any idea how to get the value of "Language for Non-Unicode Programs" in Control Panel Regional Settings programmatically using c#?

Already tried CultureInfo, RegionInfo and getting the default encoding using the Encoding object, but I can only get the Standards and Formats value or the main code page.

like image 619
Roy Tang Avatar asked Jun 02 '26 03:06

Roy Tang


1 Answers

GetSystemDefaultLocaleName or GetSystemDefaultLCID (and its P/Invoke declaration)

like image 127
Franci Penov Avatar answered Jun 04 '26 09:06

Franci Penov



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!