Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows では、変換に MultiByteToWideChar(CP_ACP, ...) と WideCharToMultiByte(CP_UTF8, ...) を使用します。
OS X と Linux で同じことを行うにはどうすればよいですか? mbstowcs/wcstombs を試しましたが、結果の char* が UTF-8 ではありません。
iconv(3)を調べてください。それがあなたが望むAPIです。が必要-liconvです。
-liconv