Is there any difference between Unicode char set and Multi-byte char set ?  
Author Message
Lejing





PostPosted: Visual C++ General, Is there any difference between Unicode char set and Multi-byte char set ? Top

Is there any difference between Unicode char set and Multi-byte char set in the Visual Studio 2005

Thank you!!



Visual C++1  
 
 
Peter Ritchie





PostPosted: Visual C++ General, Is there any difference between Unicode char set and Multi-byte char set ? Top

Yes, there is a difference between unicode an multibyte. See http://msdn2.microsoft.com/en-us/library/cwe8bzh0(VS.80).aspx for more details.

 
 
Lejing





PostPosted: Visual C++ General, Is there any difference between Unicode char set and Multi-byte char set ? Top

Could you tell me which is better I think Multi-byte char set is better due to international support, isn't it
 
 
Peter Ritchie





PostPosted: Visual C++ General, Is there any difference between Unicode char set and Multi-byte char set ? Top

I don't think one is better than the other, and if you use TCHAR (instead of char) then it will be transparent to you as a developer. If you want to support languages that require more than 8-bits per character on pre-Windows 2000 OSes (Win 95, Win 98, Win ME) then you'll have to use multi-byte. Unicode is not supported on Win95, Win98, WinMe...

If Pre-Win2k Windows isn't an issue, it really just boils down to libraries/components you want to use. For example, ODBC does not support Unicode; so, if you're using ODBC you'll have to use MBCS...

I get the impression that Unicode is the recommended character set...

 
 
Mike Danes





PostPosted: Visual C++ General, Is there any difference between Unicode char set and Multi-byte char set ? Top

Unicode IS supported on Win 95, 98 and ME to some extent using MSLU (Microsoft Layer for Unicode) aka unicows.dll:

http://www.microsoft.com/downloads/details.aspx FamilyID=73BA7BD7-ED06-4F0D-80A4-2A7EEAEE17E2&displaylang=en