Request for update: Is there any "Best Practice" for communicating encoding of POST to REST service? -


i'm creating restful service client may posting either xml, json, or unstructured text. conceivably client post chinese characters, etc. there question same, detecting character encoding of http post request, 4 years old , wanted see if "best practices" had coalesced.

edit: not information posted form (web page) client applications, content-type of post request things text/xml, text/plain, , maybe application/json.

for xml , json best practice encode in utf-8. xml has mechanisms different character sets if must not use utf-8, starting charset param given mimetype , charset param of xml directive.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -