Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any tool to convert bulk php files to UTF-8 without BOM? [closed]

I have a very large script which contains a lot of php files, so I need some Windows tool to convert all those files into UTF-8 without BOM. (I know this can be done with Notepad++ but would require doing each file separately.)

like image 680
CodeOverload Avatar asked Dec 08 '22 03:12

CodeOverload


1 Answers

I have used with success UTFCast on Windows.

It has a GUI, and is very easy to use, so you don't have to fiddle with command line scripts.

There's an "Express" free version that can do what you want, and a Pro version with more options (has a 14 day trial).

You can see here a comparison chart of both versions, to see if it suits your needs.

Express detects less codepages, but for me its worst defect is that has no filter, for only process PHP files and not JS for example.

UTFCast Express

The Pro version beyond the 14 days can be used to browse folders and detect encoding of files, but not to convert.

UTFCast Pro

like image 56
vicenteherrera Avatar answered Jun 01 '23 21:06

vicenteherrera