We use command iconv to convert the file's encoding.
iconv -f UTF-16 -t ASCII input.txt -o output.txt
We can append string //TRANSLIT to ASCII which means if a character cannot be converted, a similar looking character will be used to represent that character or a question mark (?) is used.
iconv -f UTF-16 -t ASCII//TRANSLIT input.txt -o output.txt
Thursday, April 4, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment