<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Php &#8211; Fix &#8220;Input is not proper UTF-8, indicate encoding&#8221; error when loading xml	</title>
	<atom:link href="https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Fri, 01 May 2020 12:04:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: AP		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-248011</link>

		<dc:creator><![CDATA[AP]]></dc:creator>
		<pubDate>Fri, 01 May 2020 12:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-248011</guid>

					<description><![CDATA[The &quot;strait answer&quot; that worked for me was encoding the load_string.
 simplexml_load_string(utf8_encode($xml));

I was already encoding in the API call, that had fixed an issue before, but adding it here fixed my issue.]]></description>
			<content:encoded><![CDATA[<p>The &#8220;strait answer&#8221; that worked for me was encoding the load_string.<br />
 simplexml_load_string(utf8_encode($xml));</p>
<p>I was already encoding in the API call, that had fixed an issue before, but adding it here fixed my issue.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ayo		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-156188</link>

		<dc:creator><![CDATA[ayo]]></dc:creator>
		<pubDate>Sun, 11 Mar 2018 10:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-156188</guid>

					<description><![CDATA[kindly publish the &#039;straight answer to this error message&#039;. thanks.]]></description>
			<content:encoded><![CDATA[<p>kindly publish the &#8216;straight answer to this error message&#8217;. thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ayo		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-156187</link>

		<dc:creator><![CDATA[ayo]]></dc:creator>
		<pubDate>Sun, 11 Mar 2018 10:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-156187</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66189&quot;&gt;Dean&lt;/a&gt;.

kindly publish the &#039;straight answer to this error message&#039;. thanks.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66189">Dean</a>.</p>
<p>kindly publish the &#8216;straight answer to this error message&#8217;. thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-83727</link>

		<dc:creator><![CDATA[Daniel]]></dc:creator>
		<pubDate>Thu, 16 Jun 2016 17:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-83727</guid>

					<description><![CDATA[Thanks!
It was very helpful for me too]]></description>
			<content:encoded><![CDATA[<p>Thanks!<br />
It was very helpful for me too</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Guilherme Akio Sakae		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66231</link>

		<dc:creator><![CDATA[Guilherme Akio Sakae]]></dc:creator>
		<pubDate>Mon, 09 Jun 2014 15:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-66231</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66227&quot;&gt;Gina&lt;/a&gt;.

Hi Gina,

Here&#039;s my line of code: simplexml_load_string(utf8_encode(strip_tags($_product-&#062;getDescription())));

In my case the product description contains some invalid chars and some html tags so I have to use the strip_tags function to remove them and then a can use the other 2 functions to proper encode the string.



Hope this help&#039;s you.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66227">Gina</a>.</p>
<p>Hi Gina,</p>
<p>Here&#8217;s my line of code: simplexml_load_string(utf8_encode(strip_tags($_product-&gt;getDescription())));</p>
<p>In my case the product description contains some invalid chars and some html tags so I have to use the strip_tags function to remove them and then a can use the other 2 functions to proper encode the string.</p>
<p>Hope this help&#8217;s you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CoursesWeb		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66228</link>

		<dc:creator><![CDATA[CoursesWeb]]></dc:creator>
		<pubDate>Sun, 08 Jun 2014 18:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-66228</guid>

					<description><![CDATA[Hi,
Thank you for this article. It waz useful for me.]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
Thank you for this article. It waz useful for me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gina		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66227</link>

		<dc:creator><![CDATA[Gina]]></dc:creator>
		<pubDate>Sat, 07 Jun 2014 23:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-66227</guid>

					<description><![CDATA[Can you tell me exactly what you did to fix this issue?]]></description>
			<content:encoded><![CDATA[<p>Can you tell me exactly what you did to fix this issue?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dean		</title>
		<link>https://www.binarytides.com/php-fix-input-is-not-proper-utf-8-indicate-encoding-error-when-loading-xml/comment-page-1/#comment-66189</link>

		<dc:creator><![CDATA[Dean]]></dc:creator>
		<pubDate>Sun, 25 May 2014 04:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codekites.com/?p=4352#comment-66189</guid>

					<description><![CDATA[After much Googling, I finally find a straight answer to this error message. Thanks!]]></description>
			<content:encoded><![CDATA[<p>After much Googling, I finally find a straight answer to this error message. Thanks!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
