Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: simplexml_load_string problem Date: Thu, 9 Sep 2021 15:41:14 +0200 Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 6UBAz5sKXNkgmSQw3KrBbQ+493SxGzlfpYTwjnmGGE4gDMNBHY Cancel-Lock: sha1:wx42VEP2dL1Cz1aIhdrbWscXyHY= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Content-Language: en-US-large In-Reply-To: Xref: csiph.com comp.lang.php:18788 On 09/09/2021 11.33, Torakiki wrote: > I get this XML's file via HTTPS POST > > $NEWSTR=simplexml_load_string($STR); > > If I print the TAG "fileBase64" I get the same string but with one space > instead character "+" This may be a case of your data is url-decoded when posted and the + is then also decoded to space as it should be according to standard. I would recommend you to use PUT instead of POST, so that the data will not be encoded/decoded on it's way. -- //Aho