nkf

check character code

nkf -g {file}

translate character code to utf-8

nkf -w --overwrite {file}

conver to utf-8 some files

#!/bin/sh

for file in `find $1 -maxdepth 1 -type f`; do
    nkf -w --overwrite $file
done

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.