
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Accella Website &#187; Ryan Wright</title>
	<atom:link href="http://www.accella.net/author/rwright/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.accella.net</link>
	<description>Website &#38; Mobile Application Design &#38; Development</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:39:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>XML encoding (utf-8, ascii)</title>
		<link>http://www.accella.net/xml-encoding-utf-8-ascii/</link>
		<comments>http://www.accella.net/xml-encoding-utf-8-ascii/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 03:51:42 +0000</pubDate>
		<dc:creator>Ryan Wright</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.accella.net/?p=3077</guid>
		<description><![CDATA[XML is a markup language similar to HTML. It was designed to transport data. Once data has been enoded, it can be easily read by many different systems. As a result, it is widely used in web services to transfer data. Recently, I was working on a web service which required us to parse the [...]]]></description>
			<content:encoded><![CDATA[<p>XML is a markup language similar to HTML. It was designed to transport data. Once data has been enoded, it can be easily read by many different systems. As a result, it is widely used in web services to transfer data.</p>
<p>Recently, I was working on a web service which required us to parse the data from the XML feed and to store it in the database. Normally this is a simple task which can be achieved by using PHP&#8217;s simple_xml library to parse the data. However, if the document has not been encoded properly, simple_xml will generate an XML.</p>
<p>Whenever an XML document is encoded, the encoding used should be provided in the document.<br />
If the document was encoded with unicode, example, UTF-8, the following would be the first line of the:<br />
&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;</p>
<p>In my case, the xml document was label as UTF-8, however it was an ascii document which contained non-acii characters. This created a major problem with the parser. The quick solution is to strip the non-ascii characters from the document.<br />
This can be achieved with the following php code:</p>
<p>$jobs = file_get_contents(&#8216;/home/mydir/doc.xml&#8217;);<br />
$jobs = preg_replace(&#8216;/[^(\x20-\x7F)]*/&#8217;,&#8221;, $jobs);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.accella.net/xml-encoding-utf-8-ascii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable zooming on the iPhone&#8217;s browser</title>
		<link>http://www.accella.net/disable-zooming-on-the-iphones-browser/</link>
		<comments>http://www.accella.net/disable-zooming-on-the-iphones-browser/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 03:29:43 +0000</pubDate>
		<dc:creator>Ryan Wright</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Mobile Development]]></category>

		<guid isPermaLink="false">http://www.accella.net/?p=850</guid>
		<description><![CDATA[The iPhone has many cool features that help to increase ease of use and productivity. One such feature is &#8216;pinch and zoom&#8217;. It allows the user to quickly zoom in or out of the desired portion of a web page. Another interesting feature is the auto zooming of input fields in Safari. When the user [...]]]></description>
			<content:encoded><![CDATA[<p>The iPhone has many cool features that help to increase ease of use and productivity. One such feature is &#8216;pinch and zoom&#8217;. It allows the user to quickly zoom in or out of the desired portion of a web page. Another interesting feature is the auto zooming of input fields in Safari. When the user taps the input field the browser automatically zooms in onto the input field. While this may be great for a regular website being viewed on the phone, it might be undesirable for dedicated iPhone web apps.</p>
<p>At first glance, one would probably think that using CSS or JavaScript to control the zooming would be the solution. However, this is not the case. Apple has implemented a special META tag to handle this.</p>
<p>&lt;meta content=&#8221;width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&#8221;/&gt;</p>
<p>Other mobile browsers are implementing this as well, including the upcoming Mobile Firefox(Fennec) for the Android OS. This should help to make it easier to design sites with consistent behaviors across multiple mobile browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.accella.net/disable-zooming-on-the-iphones-browser/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

