Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change files' encoding recursively on Windows?

Tags:

People also ask

How do I change the encoding from Windows 1252 to UTF-8?

Just open up the windows-1252 encoded file in Notepad, then choose 'Save as' and set encoding to UTF-8.

How do I change the encoding of a file in Powershell?

You can specify the encoding by adding the parameter -Encoding to the cmdlet Out-File.

How do I change the encoding to UTF-8?

Click Tools, then select Web options. Go to the Encoding tab. In the dropdown for Save this document as: choose Unicode (UTF-8). Click Ok.


Does anybody know a tool, preferably for the Explorer context menu, to recursively change the encoding of files in a project from ISO-8859-1 to UTF-8 and other encodings? Freeware or not too expensive would be great.

Edit: Thanks for the answers, +1 for all of then. But I would really like to be able to just right click a folder and say "convert all .php files to UTF-8". :) Further suggestions are appreciated, starting a bounty.