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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC