|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26509 wrong conversion utf8_encode of & symbol
Submitted: 2003-12-03 11:10 UTC Modified: 2003-12-03 11:16 UTC
From: fgarcia at uef dot es Assigned:
Status: Not a bug Package: XML related
PHP Version: 4.3.4 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-12-03 11:10 UTC] fgarcia at uef dot es
The string "example & string"
is traslated by utf8_encode as "example & string"
(no change)
When opening xml file with IExplorer or dom functions you get an error on '&' symbol

The correct traslation must be: "example & string"

Reproduce code:
utf8_encode("example & string")

Expected result:
"example & string"

Actual result:
"example & string"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-03 11:16 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Uh? It should not do that... the current behavior is fine.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 22:05:53 2022 UTC