> Can you be more precise what you mean. In dotnet a string is forever
Unicode.
I know this. Problem is out there.
My program is reading some data, which is not Unicode.
The result are bad, if in "Regional and language settings" in advanced tab
"Language for non-Unicode programs"
defined other language.
Linas,
Are you referring to the Regional settings in Control Panel?
System.Text.Encoding.Default will return an Encoding object that matches the
Regional settings in Control Panel. Useful for reading & writing files with
StreamReaders & StreamWriters.
You can use
System.Text.Encoding.GetEncoding(System.Globalizat ion.CultureInfo.CurrentCulture.TextInfo.OEMCodePag e)
to get your DOS or OEM encoding.
FWIW: TextInfo.ANSICodePage is the Windows encoding.
I normally only need to use System.Text.Encoding.Default. The use of
CultureInfo.CurrentCulture & CultureInfo.CurrentUICulture is implicitly used
by a number of objects (commonly overridden ToString methods).
NOTE: CultureInfo.InstalledUICulture will return the "culture installed with
the operating system" which may or may not match your regional settings.
Hope this helps
Jay
"LinasB" <li*****************@takas.lt> wrote in message
news:eR**************@TK2MSFTNGP15.phx.gbl...
| Hi,
|
| How to read system setting value of "Language for non-Unicode programs" ?
| Or how to set it programmatically?
|
| LinasB
|
|
I know this. Problem is out there. My program is reading some data, which is not Unicode. The result are bad, if in "Regional and language settings" in advanced tab "Language for non-Unicode programs" defined other language.
I had this a while as well, when I was experimenting with it. Those two
pages did help me.
hi,
recently i discovered a memory leak in our code; after some investigation i
could reduce it to the following problem:
return objects of functions are handled as temporary objects, hence...
Hello,
I couldn't find a solution to the following problem (tried
google and dejanews), maybe I'm using the wrong keywords?
Is there a way to open a file (a linux fifo pipe actually) in...
Is it at all possible to leverage mixed-mode assemblies from AppDomains
other than the default AppDomain? Is there any means at all of doing this?
Mixed-mode is incredibly convenient, but if I...
Hello All,
So far I have been reading that in case of a polymorphic class ( having
at least one virtual function in it), the virtual function call get
resolved at run time and during that the...
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= |
last post by:
PEP 1 specifies that PEP authors need to collect feedback from the
community. As the author of PEP 3131, I'd like to encourage comments
to the PEP included below, either here (comp.lang.python), or...
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...