Answered
[C++] Chinese characters in SetEventStringUnicode (wanted English)
I've wrapped your log system:
int log_info(const char *message) {
if (strlen(message) == 0) return EXIT_FAILURE;
#ifdef PLUGIN_MODE
if (sErrorSuitePtr == NULL) return EXIT_FAILURE;
sErrorSuitePtr->SetEventStringUnicode(PrSDKErrorSuite3::kEventTypeInformational,
reinterpret_cast<prUTF16Char*>((wchar_t*)(PROJECT_NAME)),
reinterpret_cast<prUTF16Char*>((wchar_t*)(message)));
#else
puts(message);
#endif
return EXIT_SUCCESS;
}
The C style cast is because `const_cast` failed with this error
C++ a const_cast can only adjust type qualifiers; it cannot change the underlying type
Output [first alert is `log_info("info successfully")`]:

Should I be using `SetErrorString` or something? - I'd prefer to use the Unicode ones in case I want to output the filename at some stage.
