0

I want to check encoding of file xml is UTF-8. How check encoding of this file xml in php?

D T
  • 3,522
  • 7
  • 45
  • 89

1 Answers1

1

You can try with:

mb_check_encoding(file_get_contents("file.xml"), 'UTF-8');
hsz
  • 148,279
  • 62
  • 259
  • 315
mum
  • 1,637
  • 11
  • 34
  • 58