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
 [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-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 22:01:24 2020 UTC