#50385 [Opn->Bgs]: txt&txt -> no utf8_encode()
| From: | johannes@php.net | Date: | Fri, 04 Dec 2009 16:14:31 +0000 |
| Subject: | #50385 [Opn->Bgs]: txt&txt -> no utf8_encode() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145422@lists.php.net to get a copy of this message | ||
ID: 50385
Updated by: johannes@php.net
Reported By: schaacke at hmmdeutschland dot de
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 5.2.11
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2009-12-04 14:15:53] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50385&edit=1