mysql error and UNICODE
-
mysql returns an error, which contains UNICODE string in whole char* error string as following:
Duplicate entry 'MQ91' for key 'UnicodeName'
here 'MQ91' is UNICODE string but can not be recognized. How to transfer the English/UNICODE mixed error string above in right format, or how to know the 'MQ91' is UNICODE?
-
mysql returns an error, which contains UNICODE string in whole char* error string as following:
Duplicate entry 'MQ91' for key 'UnicodeName'
here 'MQ91' is UNICODE string but can not be recognized. How to transfer the English/UNICODE mixed error string above in right format, or how to know the 'MQ91' is UNICODE?
What do you mean by "transfer"? If you are using printf or Format or somesuch, you can use %ls for unicode strings, like:
CString msg;
msg.Format("This is a unicode string: %ls", unicode_string);You can also use WideCharToMultiByte[^] to convert a unicode string to MBCS (or ASCII?). Does any of this help?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > //TODO: Implement signature here<