🧀 Learn Linux

Advanced·Reading and processing text

iconv:Convert text encoding

Syntax

iconv -f source encoding -t target encoding file

Examples

iconv -f GB18030 -t UTF-8 legacy.txt

Usage and sandbox support

For review only: practice in a real Linux environment, this sandbox does not execute this command.

This command is for reference and review, and the simulation terminal does not provide corresponding exercises yet.

Full documentation ↗

Related commands