WideCharToMultiByte() vs. wcstombs()
问题 What is the difference between WideCharToMultiByte() and wcstombs() When to use which one? 回答1: In a nutshell: the WideCharToMultiByte function exposes the encodings/code pages used for the conversion in the parameter list, while wcstombs does not. This is a major PITA, as the standard does not define what encoding is to be used to produce the wchar_t , while you as a developer certainly need to know what encoding you are converting to/from. Apart from that, WideCharToMultiByte is of course a