#37154 [Opn->Bgs]: All strings input must be utf8-encoded

From: Date: Fri, 21 Apr 2006 15:02:54 +0000
Subject: #37154 [Opn->Bgs]: All strings input must be utf8-encoded
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96070@lists.php.net to get a copy of this message
ID: 37154 Updated by: tony2001@php.net Reported By: troelskn at gmail dot com -Status: Open +Status: Bogus Bug Type: DOM XML related Operating System: * PHP Version: 5.1.2 New Comment: Wrong. The *default* input encoding is UTF8. But you can always use <?xml version="1.0" encoding="<your encoding>"?>. All the result data are in UTF8 anyway, this is libxml2 feature. Previous Comments: ------------------------------------------------------------------------ [2006-04-21 14:37:34] troelskn at gmail dot com Description: ------------ After some digging around and experimentation, I have found out that the DOM extension needs all input strings to be utf8-encoded. This means that any code using the extension must be spingled with urf8_encode. The problem can probably not be fixed without breaking backward compatibility, so the most sane choice may be to leave it, but atleast update the documentation to state this. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37154&edit=1

« previous php.bugs (#96070) next »