scottjehl/Respond — Issue #97: File Encoding causes troubles in IE7 and IE8
Author: firasjradi
Created: 2012-01-25 09:07:18+00:00
State: open

While doing last browser tests for an upcoming acceptance test, the weirdness of Internet Explorer drove me nuts. As if this is web developer's destiny once in a while.. :-/

Some files were running smoothely in IE7 and IE8 giving me my delicate responsive design ...others simply did not work. After debugging every code line and googling the world twice, i finally found the reason.

Respond.js does not work for IE7 or IE8 if the files are encoded in UTF-8 with Byte-Order-Mark (BOM). Remove the BOM and enjoy responsiveness. IE7 and IE8 seem to have problems in general with BOM, as this is not mandatory in the the Unicode Standard specification.

As respond.js mainly deals with IE, i would be delighted and i would recommend to mention this issue somewhere in the docs or give a warning whatsoever...to prevent people from falling in this debugging dilemma..

Cheers
@firasjradi