I need to detect these encodings in a file :
- UTF-8 (with/without BOM)
- UTF-7 (I don't know about whether it has BOM)
- UTF-16 LE/BE (always with BOM)
- UTF-32 (I don't know about whether it has BOM)
- Windows-**** (like Windows-1252)
mb_detect_encoding
on the file content doesn't work.