Wednesday, January 07, 2026

Fix Japanese garbled character

 To fix garbled Japanese characters, use the `nkf` command. You need to install it first since it is usually not available by default in most Linux platforms. Then, using the following command to convert its encoding (detected by default) to a readable one.   

$ nkf old_file.txt > new_file.txt 
An example of output is below.
Related Posts Plugin for WordPress, Blogger...