php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49136 encoding issues with events
Submitted: 2009-08-02 10:56 UTC Modified: 2009-11-04 22:05 UTC
From: janrei dot g at googlemail dot com Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: janrei dot g at googlemail dot com
New email:
PHP Version: OS:

 

 [2009-08-02 10:56 UTC] janrei dot g at googlemail dot com
Description:
------------
There are some encoding problems with the events listed on php.net.

1) Wrong title like here: http://www.php.net/cal.php?id=153&cm=08&cy=2009
The function display_event in include/layout.inc doesn't tell htmlspecialchars to use UTF-8. You can find a proposed patch here: http://jansspielwiese.pytalhost.de/php/layout.inc.diff
It should also correct the handling of URLs in case someone wants to use special characters in them.

2) Wrong description like here: http://www.php.net/cal.php?id=1198&cm=08&cy=2009
This seems to be caused by messed up encodings in the descriptions in events.csv. Sometimes the descriptions are correctly stored in UTF-8 and sometimes they are not. However, I didn't find the exact source of the problem.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-04 22:05 UTC] bjori@php.net
This bug has been fixed in SVN. Since the websites are not directly
updated from the SVN server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.

Nice catch & thanks for the patch.

I also manually changed the encoding in event#1198.

We currently do not detect the encoding submitted, and I think we blindly assume its utf8...
 [2009-11-04 22:05 UTC] svn@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=290220
Log: Fixed bug#49136 (encoding issues with events)
# Patch by janrei dot g at googlemail dot com
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 12 20:00:02 2026 UTC