In VB.NET, I want to simulate a way to "force" the ASC function to use the english codepage, even on a system having the "language for non-unicode" different than English.
For example:
Asc("Œ")
On a system having "language for non-unicode" set as English, currently the result is 140
On a system having "language for non-unicode" set as Slovakian, currently the result is 79
The twist is I CANNOT user AscW (for reasons I cannot disclose)
In the particular example above I would need for the code to always return 140.
If there's a way to force the whole program to use the english code page I could work with that as well.
I've tried playing with the CurrentCulture:
Threading.Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("en-US")
Threading.Thread.CurrentThread.CurrentUICulture = New Globalization.CultureInfo("en-US")
Right before Asc or even as the first line on the ApplicationEvent's Startup, but no luck.
Thanks!