Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render and parse invalid char #7

Open
TZanke opened this issue Apr 24, 2018 · 0 comments
Open

render and parse invalid char #7

TZanke opened this issue Apr 24, 2018 · 0 comments

Comments

@TZanke
Copy link

TZanke commented Apr 24, 2018

I have a string containing a unicode control char (mail subject)
unicode:\x88
utf-8: \xc2\x88

original MimeType: =?UTF-8?Q?=C2=88?=

Yaml Renderer creates the following line in restframework:
subject: "\x88" (unicode)

The client side has no problem at all (yaml.dump), but the rest framework server on the other side has.

RuntimeError: ReaderError at /api/xyz/
unacceptable character #x0088: special characters are not allowed
in "", position 123

pyyaml can dump but will not read content it creates.

I also installed the latest PyYaml master to fix this issue: yaml/pyyaml#25
But nothing changes.

Any thoughts on this?

(Edit: After some hours debugging i updated this question. I think this is a PyYaml related problem. But ideas are welcome)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant