Batch convert encoding in files
Problem
How can I batch-convert files in a directory for their encoding (e.g. ANSI → UTF-8) with a command or tool? For single files, an editor helps, but how can I do the mass files job?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Batch convert encoding in files
Cygwin or GnuWin32 provide Unix tools like and (and ). Under Unix/Linux/Cygwin, you'll want to use "windows-1252" as the encoding instead of ANSI (see below). (Unless you know your system is using a codepage other than 1252 as its default codepage, in which case you'll need to tell iconv the right codepage to translate from.) Convert from one ( ) to the other ( ) with: Or in a find-all-and-conquer form: Alternatively: This question has been asked many times on this site, so here's some addition…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix