Why iconv throws "illegal input sequence" error?
Issue
iconvcommand reports "illegal input sequence" and fails to change the encoding.
$ iconv -f IBM1388 -t GB18030 test > output_bad_GB18030
iconv: illegal input sequence at position 171
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- glibc-common
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
