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.
ファイル (.txt など) を読み込んで std::cout を実行したい。
しかし、ファイルのロケールがシステムのロケールと同じでない場合、奇妙な結果が出力されます。
これは私の質問です。ファイルのロケールを知るにはどうすればよいですか?
ファイルのロケールを取得できれば、システムのロケールをファイルのロケールに変更でき、はっきりと印刷されます。