I already have a test UTF-8 encoded file,
# file -bi TestspecialchrUTF.txt
Let's convert this file,
# iconv --from-code=utf-8 --to-code=iso-8859-1//TRANSLIT TestspecialchrUTF.txt -o TestISO8859.txt
Here the catch is TRANSLIT switch which is not present in man page of iconv at the time of writing this blog post. Now let's verify the character encoding of newly created file,
# file -bi TestISO8859.txt
Where, file is a unix command to determine the file type.
Any feedback will be highly appreciated.
- Ping: How to turn off ICMP ECHO Response on Linux Server
- udev: renamed network interface eth0 to eth1
- vCenter Server 5: Important Installation Tip
- Change Login Shell of Linux User
This post appeared on the softlexicon.com by Sumit Goel. Copyright © 2012 – softlexicon.com and Sumit Goel. All rights reserved. Not to be reproduced for commercial purposes without written permission.