|
|
Discuss
>
WebGUI Dev
|
|
|
User
|
Graham
|
|
Date
|
3/27/2008 3:27 pm
|
|
Views
|
313
|
|
Rating
|
0
Rate [ | ]
|
|
|
Previous
·
Next
|
Graham
|
Date: 3/27/2008 3:27 pm · Subject: JSON 2.x to_json vs encode_json · Rating: 0
We've been using to_json everywhere to do JSON encoding, but in any place where you may be storing UTF-8 data, you should use encode_json and decode_json instead. This was a problem for the poll, and is likely an issue elsewhere as well.
|
| Back to Top |
Rate [ | ]
|
| |
colink
|
Date: 3/27/2008 4:02 pm · Subject: Re: JSON 2.x to_json vs encode_json · Rating: 0
is it as simple as s/(from|to)(?=_json)/$1 eq 'from' ? 'decode' : 'encode'/esg;
|
| Back to Top |
Rate [ | ]
|
| |
Graham
|
Date: 3/27/2008 5:26 pm · Subject: Re: JSON 2.x to_json vs encode_json · Rating: 7
Should be pretty much that simple. I can't think of anywhere offhand where we would not want to use UTF8. On Mar 27, 2008, at 4:02 PM, <ckuskie@sterlink.net> <ckuskie@sterlink.net> wrote:
colink wrote:
is it as simple as s/(from|to)(?=_json)/$1 eq 'from' ? 'decode' : 'encode'/esg;
http://www.plainblack.com/webgui/dev/discuss/json-2_x-to_json-vs-encode_json/1
--
Plain Black, makers of WebGUI http://plainblack.com
|
| Back to Top |
Rate [ | ]
|
| |
|
|
Re: Bilingualism by Klaus - Fri @ 07:34am Re: Bilingualism by bepo - Fri @ 06:00am Re: Bilingualism by fathertorque - Thu @ 05:58am Re: Bilingualism by Klaus - Wed @ 01:29pm
|