Skip to content

Conversation

@maekawa-mugi
Copy link

No description provided.

@maekawa-mugi maekawa-mugi changed the title Convert encoding to UTF-8 Convert *.jp encoding to UTF-8 Apr 30, 2025
@morgant
Copy link
Owner

morgant commented May 4, 2025

Thanks, @maekawa-mugi!

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

@maekawa-mugi
Copy link
Author

maekawa-mugi commented May 4, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants