Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: simplexml_load_string problem Date: Thu, 9 Sep 2021 14:01:22 +0200 Lines: 41 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Trace: individual.net ezkUPsGXHZ3OxTVPH69QpQFOQD5036LekjfSgyC0jIZW3cehG1 Cancel-Lock: sha1:oharMwpbtHwtKUHEzieOCbbuIfQ= In-Reply-To: Xref: csiph.com comp.lang.php:18787 Torakiki: > I get this XML's file via HTTPS POST > > ============================= > > > P0.qw1PI > 2017-02-21T10:42:59 > application/pdf > Test.pdf > type="str">JVB [...] > Sem > 17/79664 > 668 > > ============================= > > and put in a string ($STR) the whole XML. > > Then > > $NEWSTR=simplexml_load_string($STR); > > If I print the TAG "fileBase64" I get the same string but with one space > instead character "+" > > simple_load_file() instead works fine, but I can't use. I can't reproduce this here. Works fine with PHP 7.4.23 (cli). Which PHP version do you use? How did you test it? -- Arno Welzel https://arnowelzel.de