You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Please see the line below from source: var CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};
I have read in many forums that uppercase 'UTF-8' is the de facto standard.
For now, I modified ng code to uppercase in my application. Thought it would be nice if you make changes on your end as well.
Because of lower case, my Struts2-REST plugin based application was not populating the model. So, PUT/POST methods didn't seem to work. I will be submitting a patch to Apache Struts to ignore case.
Do you have a pointer to other docs / spec that would state otherwise? What do you mean by:
I have read in many forums that uppercase 'UTF-8' is the de facto standard.
Could you provide the source (ideally a spec?)
I'm going to close this one since from my quick reading it seems that charset should not be case-sensitive and default headers are configurable, which means that you can change $http configuration to suit your particular backend needs.
Happy to re-open / re-consider if you can point me to specs that state otherwise, though.
Chrome automatically sends(PUT/POST) the charset in uppercase UTF-8. Firefox and IE don't.
Thanks
The text was updated successfully, but these errors were encountered: