rfc:default_encoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:default_encoding [2013/12/16 21:13] – [Changelog] yohgakirfc:default_encoding [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Request for Comments: Use default_charset As Default Character Encoding ====== ====== Request for Comments: Use default_charset As Default Character Encoding ======
-  * Version: 0.3 +  * Version: 1.0.1 
-  * Date: 2013-06-29+  * Date: 2014-01-01
   * Author: Yasuo Ohgaki <yohgaki@ohgaki.net>   * Author: Yasuo Ohgaki <yohgaki@ohgaki.net>
-  * Status: Under Discussion+  * Status: Implemented
   * First Published at: http://wiki.php.net/rfc/default_encoding   * First Published at: http://wiki.php.net/rfc/default_encoding
  
Line 31: Line 31:
 Use **default_charset as default** for encoding related php.ini settings and module/functions. Use **default_charset as default** for encoding related php.ini settings and module/functions.
  
-Not tuoched+Not touched
   * zend.script_encoding   * zend.script_encoding
  
-PHP 5.6 and master, introduce new php.ini settting. Old iconv.*/mbstring.* php.ini parameters will be removed for master.+PHP 5.6 and master, introduce new php.ini setting. Old iconv.*/mbstring.* php.ini parameters will be removed for <del>master</del> PHP6. Use of iconv.*/mbstring.* php.ini parameters raise E_DEPRECATED for 5.6 and up.
   * php.input_encoding   * php.input_encoding
   * php.internal_encoding   * php.internal_encoding
Line 41: Line 41:
   * iconv.internal_encoding (Default: php.internal_encoding)   * iconv.internal_encoding (Default: php.internal_encoding)
   * iconv.output_encoding (Default: php.output_encoding)   * iconv.output_encoding (Default: php.output_encoding)
-  * mbstring.http_input (Default: php.output_encoding)+  * mbstring.http_input (Default: php.input_encoding)
   * mbstring.internal_encoding (Default: php.internal_encoding)   * mbstring.internal_encoding (Default: php.internal_encoding)
   * mbstring.http_output (Default: php.output_encoding)   * mbstring.http_output (Default: php.output_encoding)
-  * all functions that take encoding option use php.internal_encording as default (e.g. htmlentities/mb_strlen/mb_regex/etc)+  * all functions that take encoding option use php.internal_encoding as default (e.g. htmlentities/mb_strlen/mb_regex/etc)
  
 PHP 5.5 PHP 5.5
Line 87: Line 87:
 escapeshellcmd/escapeshellarg/fgetcsv or like, are using locale based MBCS support via php_mblen(). These functions are out side of this RFC scope. escapeshellcmd/escapeshellarg/fgetcsv or like, are using locale based MBCS support via php_mblen(). These functions are out side of this RFC scope.
  
 +Database character encoding is also out side of this RFC scope.
 +
 +
 +==== BC issues ====
 +
 +None when users already using UTF-8 as their encoding.
 +
 +Other users may have to change "default_encoding" php.ini setting (leave it empty or set it to desired encoding)
  
 ===== Patch ===== ===== Patch =====
Line 100: Line 108:
 ===== Vote ===== ===== Vote =====
  
-Not yet+Vote start: 2013/12/20 01:00 UTC 
 + 
 +Vote end: 2014/01/10 01:00 UTC 
 + 
 +<doodle title="Default Character Encoding" auth="yohgaki" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
 ===== References ===== ===== References =====
  
   * Internals discussion - http://www.serverphorums.com/read.php?7,552099,552110   * Internals discussion - http://www.serverphorums.com/read.php?7,552099,552110
 +
 +
 +===== Implementation =====
 +
 +  * http://git.php.net/?p=php-src.git;a=commit;h=cbd108abf19d9fb9ae1d4ccd153215f56a2763e8
 +  * http://svn.php.net/viewvc?view=revision&revision=332850
 +  * http://svn.php.net/viewvc?view=revision&revision=332851
 +  * http://svn.php.net/viewvc?view=revision&revision=332852
 +  * http://svn.php.net/viewvc?view=revision&revision=332857
  
 ===== Changelog ===== ===== Changelog =====
  
 +  * 2014-01-01 Revised unneeded php.ini removal process. 
   * 2013-12-17 Added use case and related issues.   * 2013-12-17 Added use case and related issues.
   * 2013-10-31 Added objectives.   * 2013-10-31 Added objectives.
rfc/default_encoding.1387228400.txt.gz · Last modified: 2017/09/22 13:28 (external edit)