FG
💻 Software

How can I convert multiple files to UTF-8 encoding using *nix command line tools?

Fresh5 days ago
Mar 15, 2026136621 views
Confidence Score0%
0%

Problem

Possible Duplicate: Batch-convert files for encoding or line ending I have a bunch of text files that I'd like to convert from any given charset to UTF-8 encoding. Are there any command line tools or Perl (or language of your choice) one liners I can use to do this en masse?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I convert multiple files to UTF-8 encoding using *nix command line tools?

Low Risk

iconv does convert between many character encodings. So adding a little bash magic and we can write This will run to every file ending in , sending the recoded file to a file with the same name but ending in instead of . It's not as if this would ac…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment