Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Charset change in Content Type fails #19

Open
phpengine opened this issue Dec 14, 2018 · 0 comments
Open

Charset change in Content Type fails #19

phpengine opened this issue Dec 14, 2018 · 0 comments

Comments

@phpengine
Copy link

Hi guys, I'm implementing testing on a WAF for a client. One of the required tests includes setting a 'Content-Type': 'application/json; charset=ibm037' . This fails with the below errors. Any ideas for how I can run this please?@

input = <read-only buffer ptr 0x2831b74, size 586 at 0x7fc15e32e170>, errors = 'strict'

    def decode(input, errors='strict'):
>       return codecs.utf_8_decode(input, errors, True)
E       UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 0: invalid start byte

/usr/lib64/python2.7/encodings/utf_8.py:16: UnicodeDecodeError
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant