<?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: ZF Curly Quote Character Filter</title>
	<atom:link href="http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/</link>
	<description>Ramblings of a php coder</description>
	<lastBuildDate>Mon, 15 Mar 2010 13:26:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jon</title>
		<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/comment-page-1/#comment-344</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Fri, 11 Dec 2009 14:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombdiggity.net/blog/?p=144#comment-344</guid>
		<description>@Andy,

I understand where you are coming from but when I echo out that character on a UTF-8 page I get the question mark, which looks bad.

I can see where converting them to ASCII would work too but I&#039;ve always just converted them to the standard single quote and double quote.</description>
		<content:encoded><![CDATA[<p>@Andy,</p>
<p>I understand where you are coming from but when I echo out that character on a UTF-8 page I get the question mark, which looks bad.</p>
<p>I can see where converting them to ASCII would work too but I&#8217;ve always just converted them to the standard single quote and double quote.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Fowler</title>
		<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/comment-page-1/#comment-341</link>
		<dc:creator>Andy Fowler</dc:creator>
		<pubDate>Thu, 10 Dec 2009 23:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombdiggity.net/blog/?p=144#comment-341</guid>
		<description>Perhaps I&#039;m mistaken, but I believe that all of those characters are proper UTF-8. Most designers will get pretty if you convert their nicely-designed typography into hash marks.

Example:
echo mb_detect_encoding(chr(0xe2) . chr(0x80) . chr(0x98)); // outputs &#039;UTF-8&#039;

If what you&#039;re trying to do is convert from UTF-8 to ASCII, iconv&#039;s transliteration is probably a bit better at it:
$output = iconv(&#039;UTF-8&#039;, &#039;ASCII//TRANSLIT&#039;, $input);</description>
		<content:encoded><![CDATA[<p>Perhaps I&#8217;m mistaken, but I believe that all of those characters are proper UTF-8. Most designers will get pretty if you convert their nicely-designed typography into hash marks.</p>
<p>Example:<br />
echo mb_detect_encoding(chr(0xe2) . chr(0&#215;80) . chr(0&#215;98)); // outputs &#8216;UTF-8&#8242;</p>
<p>If what you&#8217;re trying to do is convert from UTF-8 to ASCII, iconv&#8217;s transliteration is probably a bit better at it:<br />
$output = iconv(&#8216;UTF-8&#8242;, &#8216;ASCII//TRANSLIT&#8217;, $input);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Helmertz</title>
		<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/comment-page-1/#comment-340</link>
		<dc:creator>Carl Helmertz</dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombdiggity.net/blog/?p=144#comment-340</guid>
		<description>This would be golden if it excluded MSO:s weird tags too. That kind of filter should be given in ZF. This is a good start though!</description>
		<content:encoded><![CDATA[<p>This would be golden if it excluded MSO:s weird tags too. That kind of filter should be given in ZF. This is a good start though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/comment-page-1/#comment-338</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 10 Dec 2009 13:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombdiggity.net/blog/?p=144#comment-338</guid>
		<description>@ron,

Thanks for the info. I have updated it to include all of yours plus mine. Let me know if the replacements are not correct.</description>
		<content:encoded><![CDATA[<p>@ron,</p>
<p>Thanks for the info. I have updated it to include all of yours plus mine. Let me know if the replacements are not correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Dobley</title>
		<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/comment-page-1/#comment-334</link>
		<dc:creator>Ron Dobley</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombdiggity.net/blog/?p=144#comment-334</guid>
		<description>Here is a list I created to deal with excel files. I have a few additional chars and seem to be missing a few. Perhaps, we can make a more complete list?

$badchr = array(
		&quot;&quot;, //null byte
		&quot;\x01&quot;, //SOH start of header
		&quot;\x0B&quot;, //vertical tab
		&quot;\t&quot;, //tab
		&quot;\x16&quot;, //SYN synchronous idle
        &quot;\xc2&quot;, //prefix 1
        &quot;\x80&quot;, //prefix 2
		&quot;\x92&quot;, //sigle quote
		&quot;\x93&quot;, //double quote
		&quot;\x94&quot;, //double quote
		&quot;\x96&quot;, //dash
        &quot;\x98&quot;, // single quote opening
        &quot;\x99&quot;, // single quote closing
        &quot;\x8c&quot;, // double quote opening
        &quot;\x9d&quot;  // double quote closing
	    );

Ron</description>
		<content:encoded><![CDATA[<p>Here is a list I created to deal with excel files. I have a few additional chars and seem to be missing a few. Perhaps, we can make a more complete list?</p>
<p>$badchr = array(<br />
		&#8220;&#8221;, //null byte<br />
		&#8220;\x01&#8243;, //SOH start of header<br />
		&#8220;\x0B&#8221;, //vertical tab<br />
		&#8220;\t&#8221;, //tab<br />
		&#8220;\x16&#8243;, //SYN synchronous idle<br />
        &#8220;\xc2&#8243;, //prefix 1<br />
        &#8220;\x80&#8243;, //prefix 2<br />
		&#8220;\x92&#8243;, //sigle quote<br />
		&#8220;\x93&#8243;, //double quote<br />
		&#8220;\x94&#8243;, //double quote<br />
		&#8220;\x96&#8243;, //dash<br />
        &#8220;\x98&#8243;, // single quote opening<br />
        &#8220;\x99&#8243;, // single quote closing<br />
        &#8220;\x8c&#8221;, // double quote opening<br />
        &#8220;\x9d&#8221;  // double quote closing<br />
	    );</p>
<p>Ron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Weinraub</title>
		<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/comment-page-1/#comment-333</link>
		<dc:creator>David Weinraub</dc:creator>
		<pubDate>Wed, 09 Dec 2009 16:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombdiggity.net/blog/?p=144#comment-333</guid>
		<description>Excellent! Man, those Word quotes piss me off. Thanks and cheers! ;-)</description>
		<content:encoded><![CDATA[<p>Excellent! Man, those Word quotes piss me off. Thanks and cheers! <img src='http://bombdiggity.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred</title>
		<link>http://bombdiggity.net/blog/2009/12/09/zf-curly-quote-character-filter/comment-page-1/#comment-332</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Wed, 09 Dec 2009 16:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombdiggity.net/blog/?p=144#comment-332</guid>
		<description>Thank you!!  It seems like I run into this all the time.  I will have to try and use this and see how it works.</description>
		<content:encoded><![CDATA[<p>Thank you!!  It seems like I run into this all the time.  I will have to try and use this and see how it works.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
