-
May 11th, 2011, 04:33 PM
#1
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?
-
May 11th, 2011, 04:37 PM
#2
Re: CString's MakeUpper issue
Victor Nijegorodov
-
May 11th, 2011, 05:10 PM
#3
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...
-
May 12th, 2011, 02:17 PM
#4
Re: CString's MakeUpper issue
Search bing for "CString makeupper fails on unicode" for a bit of background.
-
May 12th, 2011, 02:36 PM
#5
Re: CString's MakeUpper issue
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?
Victor Nijegorodov
-
May 12th, 2011, 04:58 PM
#6
Re: CString's MakeUpper issue
Thanks. I'm still not sure if it fixes the issue though.... what do you use in your case?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|