开发者

Convert output of Windows LPWSTR API's to UTF-8?

开发者 https://www.devze.com 2023-04-06 12:23 出处:网络
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 t

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号