Different UTF-8-Handling of Ext.JSON.encode() and Chrome's JSON.stringify()
extjs, json, unicode, utf-8
Solution
You can set Ext.USE_NATIVE_JSON to true in Extjs 4.
Problem
I found a difference between Ext JS's (Version 4.1) `Ext.JSON.encode()` and Chrome's (Version 21.0.1180.79) `JSON.stringify()` when used in Chrome's console: ``` JSON.stringify({"title": "ä"}) > "{"title":"ä"}" Ext.JSON.encode({"title": "ä"}) > "{"title":"\u00e4"}" ``` Since I want to show the results in the browser, I prefer Chrome's result, but I know that I cannot really rely on Chrome's JSON handling in other browsers. So how can I achieve Chrome's result with Sencha's Ext JS?