Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Invalid chars when converting from UTF8 to ANSI or CodePage 936

$
0
0
Our legacy MFC application (32 bit) is compiled using _MBCS.
In windows 2003 Server (32 bit) we were able to load & Display double byte chars (Chinese simplified).
We used notepad++ to convert the data file from UTF8 (chinese chars) to ANSI and used to load.

But the same scenario is not working in Windows 2008 R2. Installed MUL Language  zhn-cn
changed the display language and regional settings to China.


Tried the following to convert the UTF8 but only junk ? chars present
1.Using notepad++ to convert UTF8 (chinese chars) to ANSI and used to load. (??? appeard)
2.Used a C# application to read and convert to default Encoding & Code page 936 (some junk chars ÕÐÉÌÒ )

The application is behaving correctly in Windows 2003 but not Windows 2008 R2.
Am I missing anything Please help

Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>