Skip to content

Convert *.jp encoding to UTF-8 - #52

Open
maekawa-mugi wants to merge 1 commit into
morgant:masterfrom
maekawa-mugi:master
Open

maekawa-mugi wants to merge 1 commit into
morgant:masterfrom
maekawa-mugi:master

Conversation

@maekawa-mugi

Copy link
Copy Markdown

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

morgant commented May 4, 2025

Copy link
Copy Markdown
Owner

Thanks, @maekawa-mugi!

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

@maekawa-mugi

maekawa-mugi commented May 4, 2025

Copy link
Copy Markdown
Author

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