Convert Chinese to Unicode or reverse with native2ascii or uni2ascii on FreeBSD
Use uni2ascii Install uni2ascii # pkg install uni2ascii Converting Chinese to Unicode: % uni2ascii -a U chinese.txt > unicode.txt Converting Unicode to Chinese: % ascii2uni -a U unicode.txt > chinese.txt Use native2ascii Converting Chinese to Unicode: % native2ascii -encoding GBK chinese.txt unicode.txt Converting Unicode to Chinese: % native2ascii -reverse -encoding GBK unicode.txt chinese.txt native2ascii is a tool of JDK, you need to install JDK first if you want to use native2ascii.