php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50385 txt&txt -> no utf8_encode()
Submitted: 2009-12-04 14:15 UTC Modified: 2009-12-04 16:14 UTC
From: schaacke at hmmdeutschland dot de Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.11 OS: Linux
Private report: No CVE-ID: None
 [2009-12-04 14:15 UTC] schaacke at hmmdeutschland dot de
Description:
------------
//PHP 5.2.6 (cli) (built: Dec  4 2008 16:52:00) 
//Copyright (c) 1997-2008 The PHP Group
//Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

$in="M?rchenm?hle" H?usl. Alten- & Krankenpfle. Jutta Kern
$out=utf8_encode($in);
echo $out; 
-> M?rchenm?hle" H?usl. Alten- & Krankenpfle. Jutta Kern
do not encodes the string in to UTF-8

$in=str_replace('&',"",$in);
encodes the string in to UTF-8




Reproduce code:
---------------
---
From manual page: function.utf8-decode#Siehe auch
---


Expected result:
----------------
encodes the string in to UTF-8

Actual result:
--------------
do not encodes the string in to UTF-8

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-04 16:14 UTC] johannes@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Make sure your input is iso-8859-1 encodet forthis function.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 15 23:00:01 2025 UTC