Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- readonly infile=hoge.txt
- iconv -l | while read enc; do
- if iconv -f $enc -t utf-8 < $infile > tmp.txt 2>/dev/null; then
- cat tmp.txt
- echo --
- echo $enc
- echo ==========================
- fi
- done
Add Comment
Please, Sign In to add comment