-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Vague suggestion: Utilities for parsing strings #166
Comments
I think the encoding might depend on a bunch of different things, at least going by the RFC. Could you post the raw request body that you're working with? |
Here's an example request where the
It seems to use utf-8, which matches my website's |
I guess if there's no hint anywhere as to how the browser/client encoded the data, it's hard to say how the string should be obtained on the server side. The RFC has the following piece of text that I found relevant.
|
Parsing strings has turned out to be unexpectedly challenging. I've spent the last hour trying to figure out what text encoding is used in multipart form data, and I still haven't got a clue. There's no
Content-Type
/charset
header anywhere to be found, and some sources say it's utf8 while others say HTTP requests are ISO-8859-1.So, it would be very nice if this module had builtin support for parsing strings. Ideally in a way that works together with the
ListTarget
so that we can also parse lists of strings.The text was updated successfully, but these errors were encountered: