php.net |  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
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: fgarcia at uef dot es
New email:
PHP Version: OS:

 

 [2003-12-03 11:10 UTC] fgarcia at uef dot es
Description:
------------
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"

Patches

Pull Requests

History

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

Uh? It should not do that... the current behavior is fine.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC