<html> <head> <title> Test </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-16"/> </head> <body style="background:white"> <p> Should detect encoding UTF-16 </p> </body> </html>