◎lv
SJIS→UTF変換可能。
△NextFTP Ver4.85
ファイル転送と同時にSJIS→UTF変換できる。
試用期限があり。
×iconv
SJIS→UTF変換できるが、バックスラッシュ変換問題がある。
yenマークのバックスラッシュを英語のバックスラッシュ(\)ではなく
まじめにyen記号に変換する。
コンパイラがyesマークバックスラッシュを解釈できない。
【lvで文字コード変換】
$ cat s2u.com
#!/bin/sh
mkdir -p ./UTF
rm -f ./UTF/*
for file in `find . -type f`;
do
echo $file
/usr/com/bin/lv -Is -Ou8 $file > ./UTF/tmpfile
#iconv -f shift_JIS -t UTF-8 $file > ./UTF/tmpfile
#iconv -f eucJP -t UTF-8 $file > tmpfile
#iconv -f Shift_JIS -t UTF-8 sjis.txt > utf-8.txt
mv ./UTF/tmpfile ./UTF/$file
done
exit
役に立たないかもしれないがイチオウiconv
$ cat iconv.com
#!/bin/sh
for file in `find . -type f`;
do
echo $file
iconv -f eucJP -t UTF-8 $file > tmpfile
mv tmpfile $file
done
exit
2008年12月17日水曜日
文字コード変換
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿