lost and found ( for me ? )

Linux : How to check what kind of character code is used n’ change character code

install kcc and nkf
# apt-get install kcc
# apt-get install nkf

check what character code is used
# kcc -c test.txt
test.txt:       shift-JIS

or you can also check character code w/ nkf
# nkf --guess test.txt

# cat test.txt
how low ?

change character code w/ nkf

convert Shift_JIS  into UTF-8 and overwrite
# nkf -w --overwrite test.txt

# nkf -g test.txt

# cat test.txt
how low ?

get things done.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.