I am working on a C++
project that need to get data from unicode text
.
I have a problem that I can't lower some unicode character
.
I use wchar_t
to store unicode character which read from a unicode file. After that, I use _wcslwr
to lower a wchar_t
string. There are many case still not lower such as:
Đ Â Ă Ê Ô Ơ Ư Ấ Ắ Ế Ố Ớ Ứ Ầ Ằ Ề Ồ Ờ Ừ Ậ Ặ Ệ Ộ Ợ Ự
which lower case is:
đ â ă ê ô ơ ư ấ ắ ế ố ớ ứ ầ ằ ề ồ ờ ừ ậ ặ ệ ộ ợ ự
I have try tolower
and it is still not working.
If you call only
tolower
, it will callstd::tolower
from headerclocale
which will call thetolower
for ansi character only.The correct signature should be:
Here below is 2 versions which works well:
Reference:
towlower
tolower