UNICODE to MBCS
- From: "CLoser" <Matthew.A.Cox@xxxxxxxxx>
- Date: 28 Feb 2006 15:41:45 -0800
Hi,
I'm trying to figure out if I need to do anything special inorder to
read unicode into a dll written using MBCS. We have string files that
are saved as Unicode (UTF-16) and we are forced to load these files
into a dll that is compiled using MBCS. Do we need to run
WideCharToMultiByte on everything that comes back? We are using
GetPrivateProfileString when reading from the file if that makes a
difference.
Furthermore, does anyone know of any problems with doing this? Are
there certian characters that will become lost in translation?
I'm a newbie to I18N, but I've read somewhere that you can take Unicode
code points and save them into any encoding as long as the target
encoding has an equivalent code point. So if I have a 'A' and save it
in UTF-16 I can then re-save it as English ANSI and it will still be
'A'. Is that universally true. If I have Japanese or some other Asian
language symbol save it in UTF-16 and then re-save it as that locale's
ANSI DBCS will it be the same?
Regards,
Matt
.
- Follow-Ups:
- Re: UNICODE to MBCS
- From: David Lowndes
- Re: UNICODE to MBCS
- From: CLoser
- Re: UNICODE to MBCS
- Prev by Date: Re: Error in VS2005
- Next by Date: Re: UNICODE to MBCS
- Previous by thread: Error in VS2005
- Next by thread: Re: UNICODE to MBCS
- Index(es):
Relevant Pages
|
Loading