php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51623 Upgrade utf8_enc/decode to Windows-1252
Submitted: 2010-04-21 13:47 UTC Modified: 2010-04-21 13:55 UTC
From: nicolas dot grekas+php at gmail dot com Assigned:
Status: Wont fix Package: Unknown/Other Function
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nicolas dot grekas+php at gmail dot com
New email:
PHP Version: OS:

 

 [2010-04-21 13:47 UTC] nicolas dot grekas+php at gmail dot com
Description:
------------
utf8_enc/decode enc/decodes an ISO-8859-1 string to UTF-8 and vice versa


I think it would be a good improvement to use Windows-1252 instead of ISO-8859-1

Windows-1252 is a superset of ISO-8859-1, which only adds some glyphs to unused ISO-8859-1 code point.

Added to the fact that Windows-1252 is a de facto world wide standard, that HTML5 is standardizing on UTF-8/Windows-1252 "even if ISO-8859-1 it stated in the document".

That would also fix a lot of scripts on the web, where we see some <92> "characters" instead of ’ (opening single quote, or apostrophe) for example


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-21 13:55 UTC] pajoye@php.net
-Status: Open +Status: Wont fix
 [2010-04-21 13:55 UTC] pajoye@php.net
Please use mbstring or iconv instead.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC