WhiteHouse / api-standards

3.08k stars 902 forks source link

Recommend encoding type #22

Open philipashlock opened 11 years ago

philipashlock commented 11 years ago

I would suggest UTF-8 and this should be specified in the HTTP Content-Type header as well, eg for json the full header would be

Content-Type: application/json; charset=utf-8

See http://utf8everywhere.org/ for some arguments for UTF-8 and arguments against other encodings like UTF-16