mlvwm icon indicating copy to clipboard operation
mlvwm copied to clipboard

Convert *.jp encoding to UTF-8

Open maekawa-mugi opened this issue 7 months ago • 2 comments

maekawa-mugi avatar Apr 30 '25 18:04 maekawa-mugi

Thanks, @maekawa-mugi!

Were the original files encoded using Shift JIS? I have to admit, I haven't checked in years.

morgant avatar May 04 '25 19:05 morgant

oddly ISO-2022-JP and EUC-JP were mixed together.

$ nkf --guess *.jp sample_rc/*-j
CHANGELOG.jp: EUC-JP (LF)
CONFIGURATION.jp: ISO-2022-JP (LF)
FAQ.jp: EUC-JP (LF)
README.jp: EUC-JP (LF)
sample_rc/Mlvwmrc-j: EUC-JP (LF)
sample_rc/Mlvwmrc-Kterm-j: ISO-2022-JP (LF)

what i did:

$ find . -name '*.jp' -type f -print0 | xargs -0 nkf -u --overwrite -w
$ find . -name '*-j' -type f -print0 | xargs -0 nkf -u --overwrite -w

maekawa-mugi avatar May 04 '25 20:05 maekawa-mugi