Skip to content
Advertisement

encoding language fails

PHP code below fails to retrieve correct characters when used :

JavaScript

the result is :

����%PKJDA��ۈ�0�o’�z��W�”�7o�E��J:�%�+�=o�h@Ĥ�T�Jv�L�$��IT��1҈IY �B L�g�Mt����� �S]>>�����������j#�Tu97������@”jD��C�3×0�����I”(“D�W��Bd��9������J�^ȑ���T��[e��K����r�ZB����r�Z޼#�w��4G� � �C�b�%8��PR�/���ع���a=�o��s���H�G�

Advertisement

Answer

This is because the output is ‘gzip’ed, you need to ‘unzip’ it (see ‘Content-Encoding’):

JavaScript

unzipping (on Windows):

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement