View Full Version : What version of strcmp when comparing UTF8
Tokelil
09-30-2004, 03:36 PM
Just got in a little doubt on this one. Should I use strcmp or mbscmp when I compare two UTF8 strings? (The UCS2 to UTF8 convert function in QCD returns a char*, so I guess strcmp)
shaohao
09-30-2004, 09:11 PM
Just got in a little doubt on this one. Should I use strcmp or mbscmp when I compare two UTF8 strings? (The UCS2 to UTF8 convert function in QCD returns a char*, so I guess strcmp)
You can use "lstrcmp"!
lstrcmp for utf8 for non-UNICODE
lstrcmp for unicode when define UNICODE
Tokelil
10-01-2004, 05:02 AM
Thx. I'll have a look at it tomorrow! (Later today... )
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.