From:             glideraerobatics at hotmail dot com
Operating system: 
PHP version:      5.2.9RC1
PHP Bug Type:     JSON related
Bug description:  Feature request: add 3rd optional argument - the character 
encoding

Description:
------------
Feature request

As you can see here:
http://nl3.php.net/manual/en/function.json-encode.php
people are jumping through hoops to encode variables of non-utf8 encodings
into JSON format.

Why not just centralize that magic into the function itself as a new 3rd
optional argument $encoding that defaults to UTF-8?


Reproduce code:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a

-- 
Edit bug report at http://bugs.php.net/?id=47347&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47347&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47347&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47347&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47347&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47347&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47347&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47347&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47347&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47347&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47347&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47347&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47347&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47347&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47347&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47347&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47347&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47347&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47347&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47347&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47347&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47347&r=mysqlcfg

Reply via email to