このコンテンツは選択した言語では利用できません。

Chapter 9. Advanced Topics


9.1. Using the iconv tool

The iconv tool converts the encoding of characters in a file from one coded character set to another. The result is written to standard output unless otherwise specified by the --output option. When doing conversions it is always a good idea to backup ones original files first.
The following are some useful examples of using the iconv tool.
  • List character-set encoding names:
    iconv --list
    Copy to Clipboard Toggle word wrap
  • Convert ISO8859-1 (legacy Western European) content to utf-8
    iconv -f ISO_8859-1 -t UTF-8 oldfile > newfile
    Copy to Clipboard Toggle word wrap
    In the above example, the oldfile is encoded in ISO8859-1, while the "newfile" will be encoded in UTF-8.
  • Similarly to convert EUCJP content to UTF-8
    iconv -f EUCJP -t UTF-8 oldfile > newfile
    Copy to Clipboard Toggle word wrap
See the iconv (1) manpage for more details.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat