Linux convert file encoding


/ Published in: Bash
Save to your folder(s)

To convert files, especially prior to mysql insert. use file filename to find out encoding


Copy this code and paste it in your HTML
  1. iconv --from-code UTF-16 --to-code UTF-8 inputfile >outputfile

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.