Connecting Tech Pros Worldwide Forums | Help | Site Map

Does std::string supports wide characters?

Member
 
Join Date: Jun 2007
Posts: 59
#1: 2 Weeks Ago
Hello,
I am trying to implement the CString class. I can implement the functions using the standard namespace string class, but not sure whether it will support the wide characters or not.

Also, please suggest that how can I check for characters of other languages? Can I get characters of other languages by changing the language settings of my machine?

Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,188
#2: 2 Weeks Ago

re: Does std::string supports wide characters?


std:string is based on char and therefore does not support wide characters, but can support multi-byte characters. std::wstring is based on wchar_t and supports wide characters.
Reply