So I want to use SetThreadLocale to set a threads codepage to UTF8. Up to now, I've been using the second parameter of atl string conversion macros like "CT2A(szBUF, CP_UTF8)" to do this. But I want to be able to set the thread codepage once in the beginning with SetThreadLocale() and never have to use the second parameter of the conversion macro again.
How do I do this? SetThreadLocale won't take a code page parameter like CP_UTF8, just an LCID. What parameters should I be feeding SetThreadLocale to achieve this??
Keep in mind, I have no particular language in mind. The strings I get could be Japanese, Korean, English Etc. So far, I'm having no problems with this mix of strings when specifying CP_UTF8 as the second parameter of a conversion macro. You may ask "well then why not just keep using the second parameter". Answer, "because it can be easily forgotten by team members working on the code. It would be nice if it would just work correctly using the default 1 parameter version of the conversion macro."