atutor/AChecker — pull request #28 by astuanax (2013-03-11 19:37:33+00:00)
Title: UTF-8 Encoding the REST response

UTF-8 Encoding the REST response to avoid unidentified entity errors:

In some cases where the webpage is served with XHTML, UTF-8, but really serving ISO-8859-1, the XML that is returned, when selecting output=REST, becomes invalid.

It is full of â entities. [quote]It is an encoding issue. The non-breaking space, encoded in UTF-8 (the document makes the claim to be in UTF-8) is hex C2A0 (two bytes) but in ISO-8859-1 it is hex A0 (one byte). My browser thinks your page is ISO-8859-1. This is due to the Content-type header being incorrect.[quote]
http://ncsuwebdev.ning.com/forum/topics/the-case-of-the-mysterious