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.
UTF-16をUTF-8に変換したり元に戻したりするためのシンプルでポータブルな方法(少なくともwin32、linux)はありますか?できればブーストを使用します。
あなたの助けのためのThx、トビアス
libiconvとicuの両方でこれを行うことができます。
これが学術目的の場合は、UTF-32に変換してから、UTF-8またはUTF-16に変換できます。Unicode.orgには、UTF-32、UTF-16、およびUTF-8のビット分布の表を含む便利なPDFがあります。