CString's MakeUpper issue
I'm not sure if I brought this up before, if so I apologize.
I'm using CString's MakeUpper() method to convert string to all upper case. This works for US letters as well as for some European languages, but for some reason that functions fails with some non-ANSI Unicode characters.
Does anyone know why and if there's a reliable API to convert a Unicode-16 string to all upper case without going into details about locales, etc?
Re: CString's MakeUpper issue
Re: CString's MakeUpper issue
The thing is that I don't know.
Let me explain. I use that function as part of generation of a user code for a license of my software. On the other hand a PHP script on a web server generates the same license code automatically in a user email. The PHP capping function works as intended, the issue happens in MakeUpper when certain "foreign" characters aren't converted to upper case. I don't have a non-English keyboard now to give you an example...
Re: CString's MakeUpper issue
Search bing for "CString makeupper fails on unicode" for a bit of background.
Re: CString's MakeUpper issue
Quote:
Originally Posted by
ahmd
The thing is that I don't know.
...
The PHP capping function works as intended, the issue happens in MakeUpper when certain "foreign" characters aren't converted to upper case. I don't have a non-English keyboard now to give you an example...
So is it the same problem you asked (and then have answered) in this thread?
Re: CString's MakeUpper issue
Thanks. I'm still not sure if it fixes the issue though.... what do you use in your case?