2019-12-15 05:03:00 +00:00
|
|
|
# nkf
|
|
|
|
|
|
|
|
> Network kanji filter.
|
|
|
|
> Converts kanji code from one encoding to another.
|
meshlabserver, nkf, obs, pax, pdfimages, pinky, pssh, s, sd, sendmail, sftp: add link (#6971)
2021-10-17 05:23:56 +01:00
|
|
|
> More information: <https://manned.org/nkf>.
|
2019-12-15 05:03:00 +00:00
|
|
|
|
|
|
|
- Convert to UTF-8 encoding:
|
|
|
|
|
|
|
|
`nkf -w {{path/to/file.txt}}`
|
|
|
|
|
|
|
|
- Convert to SHIFT_JIS encoding:
|
|
|
|
|
|
|
|
`nkf -s {{path/to/file.txt}}`
|
|
|
|
|
|
|
|
- Convert to UTF-8 encoding and overwrite the file:
|
|
|
|
|
|
|
|
`nkf -w --overwrite {{path/to/file.txt}}`
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Use LF as the new line code and overwrite (UNIX type):
|
2019-12-15 05:03:00 +00:00
|
|
|
|
|
|
|
`nkf -d --overwrite {{path/to/file.txt}}`
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Use CRLF as the new line code and overwrite (windows type):
|
2019-12-15 05:03:00 +00:00
|
|
|
|
|
|
|
`nkf -c --overwrite {{path/to/file.txt}}`
|
|
|
|
|
|
|
|
- Decrypt mime file and overwrite:
|
|
|
|
|
|
|
|
`nkf -m --overwrite {{path/to/file.txt}}`
|