FAQ

On Fri, 2010-03-26 at 08:04 -0700, Rasmus Lerdorf wrote:
On 03/26/2010 05:39 AM, Johannes Schlüter wrote:
On Tue, 2010-03-23 at 18:08 +0000, Rasmus Lerdorf wrote:
rasmus Tue, 23 Mar 2010 18:08:06 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=296685

Log:
Switch default_charset, if not specified, from ISO-8859-1 to UTF-8
I have been wanting to make this change for years, but there is a small
chance of BC issues, so it shouldn't go into a minor release.
I in "my world" this isn't just a small chance of a break. Over here
every application has to deal with non-ASCII characters (äöüßÄÖÜ). Many
"average" applications don't set the encoding, most don't care.

With the environments using more and more Utf-8 (operating system
environments, editor defaults, ...) the change is good but it is no
small thing but will cause "trouble" for many users having iso-8859-1
texts in their database and getting broken pages after the upgrade and
we should advise users to mind their encodings!

Fixing applications is easy, getting the knowledge to our users is hard.
Well, they don't necessarily have to fix their application. They can
just put: default_charset=iso-8859-1 in their php.ini.
If they have access to the file, which many users don't have. And I
don't object to the change, just want to get some more awareness about
the impact.

johannes

p.s. sorry for CC'ing internals-win, not internals, my completion went
wrong.

Search Discussions

  • Stanislav Malyshev at Mar 26, 2010 at 6:04 pm
    Hi!
    Well, they don't necessarily have to fix their application. They can
    just put: default_charset=iso-8859-1 in their php.ini.
    If they have access to the file, which many users don't have. And I
    Can't they just do ini_set? It's INI_ALL.
    --
    Stanislav Malyshev, Zend Software Architect
    stas@zend.com http://www.zend.com/
    (408)253-8829 MSN: stas@zend.com
  • Johannes Schlüter at Mar 26, 2010 at 6:12 pm

    On Fri, 2010-03-26 at 11:03 -0700, Stanislav Malyshev wrote:
    Hi!
    Well, they don't necessarily have to fix their application. They can
    just put: default_charset=iso-8859-1 in their php.ini.
    If they have access to the file, which many users don't have. And I
    Can't they just do ini_set? It's INI_ALL.
    Yes, they can also just call header() or whatever. As I wrote in my
    initial mail "Fixing applications is easy" the point is "getting the
    knowledge to our users is hard". Which means we need clear language in
    announcements and other documentation.

    johannes

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedMar 26, '10 at 3:28p
activeMar 26, '10 at 6:12p
posts3
users2
websitephp.net

People

Translate

site design / logo © 2022 Grokbase