This property is an array that contains the acceptable charsets specified by the user agent in the request.
Useful for advanced content negotiation where a client may or may not support certain character sets, such as unicode (utf-8.) This returns all of the "acceptable" charsets specified in this request's
Accept-Charset header (see RFC-2616.)
req.acceptedCharsets; // -> ['utf-8', 'utf-16']
- See the
acceptsmodule for the finer details of the header parsing algorithm used in Sails/Express/Koa/Connect.
Is something missing?
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.
- Blueprint API
- Command Line Interface
- Response (`res`)
- Waterline (ORM)
- Resourceful PubSub
- Socket Client
We wrote a book!
Get early access to the book
with promotion code: mcneildoc