|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-04 16:14 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 23:00:01 2025 UTC |
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