Convert output of Windows LPWSTR API's to UTF-8?
Pardon for my lack of knowledge in this area. Windows natively 开发者_运维问答uses some type of multiple-byte encoding (Is it UTF-16?). Regardless, I am using a regular expression library that needs the output in UTF-8. What is the Windows API used to convert a standard 2-byte LPWSTR to UTF-8?
WideCharToMultiByte and first argument CP_UTF8.
By the way, since English includes the pound sign, euro sign, etc., your language is affected as much as others are.
精彩评论