Comments (5)
Why is windows-1252 the default and not utf8?
from http.fs.
It was just what was used on wherever I got that code from in the first place (MSDN or something). I'll think about it properly when this issue gets implemented. The response defaults to ISO-8859-1, which from what I understand is the HTTP 1.1 default, so I guess it would be that or UTF-8. I take it you think UTF-8's the way to go?
from http.fs.
I always saw UTF8 used everywhere, but it's possible it's not the correct default, just wondering if you found that in any http spec, I couldn't find any info
from http.fs.
In http://www.ietf.org/rfc/rfc2616.txt, sections 3.7.1 & 14.2 discuss ISO-8859-1 being the default encoding text-based types, but that's about the response. I can't see the request body specifically mentioned.
http://stackoverflow.com/a/708942/368134 says the default for a POST body is ISO-8859-1, although I couldn't see that in either of the resources he linked to. So I'm really not sure. Let me know if you find anything definitive!
A related point, while the HTTP specs state accept-charset 'can be used to indicate what character sets are acceptable for the response', the HTML 4.01 specs (http://www.w3.org/TR/html401/interact/forms.html#adef-accept-charset) states 'This attribute specifies the list of character encodings for input data that is accepted by the server processing this form.'
from http.fs.
added withBodyEncoded
from http.fs.
Related Issues (20)
- Resource temporarily unavailable HOT 3
- Update FAQ to indicate using HttpClient not HttpWebRequest/Response under the hood HOT 1
- Question re. GZip and Decompression HOT 1
- Downloading of large files gets "Failed to get response" exception after 100 seconds? HOT 2
- How would I determine content-length, content-type, etc without actually downloading the file? HOT 4
- README corrections
- content-type header is not sent with GET request HOT 10
- Custom http method HOT 1
- Send body from stream HOT 1
- Setting Content Headers in requests HOT 2
- How to ignore TLS Certificate errors HOT 1
- Body not sent with DELETE request HOT 2
- Add request header If-Unmodified-Since HOT 2
- Exception thrown from Hopac HOT 5
- Can't get proxy working HOT 3
- How to enable TCP Keep Alive HOT 1
- Latest package version is compiled with .NET Core-based String.split overload making it incompatible with .NET Framework and .NET Standard 2.0 HOT 6
- Docs outdated? HOT 1
- RobiniaDocs API Explorer
- Parasitic code warning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http.fs.