<?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: How to trim() No-Break space (&#160;) when parsing HTML</title>
	<atom:link href="http://www.vineetmanohar.com/2009/06/how-to-trim-no-break-space-when-parsing-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vineetmanohar.com/2009/06/how-to-trim-no-break-space-when-parsing-html/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-trim-no-break-space-when-parsing-html</link>
	<description>Java, Web 2.0 and other Tech topics</description>
	<lastBuildDate>Thu, 09 Feb 2012 08:01:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Christian R. Conrad</title>
		<link>http://www.vineetmanohar.com/2009/06/how-to-trim-no-break-space-when-parsing-html/comment-page-1/#comment-83961</link>
		<dc:creator>Christian R. Conrad</dc:creator>
		<pubDate>Thu, 02 Feb 2012 12:24:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.vineetmanohar.com/?p=267#comment-83961</guid>
		<description>OK, so add &quot;ampersand-nbsp-semicolon&quot; into my previous comment in quite a few places, where now it has those mysterious empty quotes &quot; &quot; ... :-)</description>
		<content:encoded><![CDATA[<p>OK, so add &#8220;ampersand-nbsp-semicolon&#8221; into my previous comment in quite a few places, where now it has those mysterious empty quotes &#8221; &#8221; &#8230; <img src='http://www.vineetmanohar.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian R. Conrad</title>
		<link>http://www.vineetmanohar.com/2009/06/how-to-trim-no-break-space-when-parsing-html/comment-page-1/#comment-83960</link>
		<dc:creator>Christian R. Conrad</dc:creator>
		<pubDate>Thu, 02 Feb 2012 12:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.vineetmanohar.com/?p=267#comment-83960</guid>
		<description>Hello!

Vineet, you make it sound as if there&#039;s some mistake or something wrong with translating &quot;&#160;&quot; into a non-breaking space instead of just an ordinary blank space. But that is exactly what &quot;&#160;&quot; means -- &quot;Non-Breaking SPace&quot;. (What did you think the characters N, B, S, and P in the entity stand for?)

If there is a problem, it is absolutely not with converting &quot;&#160;&quot; to ASCII 160, but with trim() and Java functions like it -- if anything should change, then those functions should be changed to handle valid characters correctly, not the perfectly correct conversion.

Or, hey, come to think of it, maybe it&#039;s just your expectations that are wrong: Since &quot;&#160;&quot; is explicitely intended to be _Non-Breaking_, why on Earth would you think it should be handled like an ordinary space by &quot;trim()&quot;? The whole point of a Non-Breaking Space is that it is NOT to be considered a word boundary, but left intact with the letters to either side of it, just like an ordinary letter.

Or, in other words: NOT to be handled like an ordinary space is exactly what &quot;&#160;&quot; IS FOR. So for the conversion to convert it to ASCII 160, and for trim() NOT to trim that character, seems to me (from your terse description) to be precisely the correct behaviour.

HTH!</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>Vineet, you make it sound as if there&#8217;s some mistake or something wrong with translating &#8220;&nbsp;&#8221; into a non-breaking space instead of just an ordinary blank space. But that is exactly what &#8220;&nbsp;&#8221; means &#8212; &#8220;Non-Breaking SPace&#8221;. (What did you think the characters N, B, S, and P in the entity stand for?)</p>
<p>If there is a problem, it is absolutely not with converting &#8220;&nbsp;&#8221; to ASCII 160, but with trim() and Java functions like it &#8212; if anything should change, then those functions should be changed to handle valid characters correctly, not the perfectly correct conversion.</p>
<p>Or, hey, come to think of it, maybe it&#8217;s just your expectations that are wrong: Since &#8220;&nbsp;&#8221; is explicitely intended to be _Non-Breaking_, why on Earth would you think it should be handled like an ordinary space by &#8220;trim()&#8221;? The whole point of a Non-Breaking Space is that it is NOT to be considered a word boundary, but left intact with the letters to either side of it, just like an ordinary letter.</p>
<p>Or, in other words: NOT to be handled like an ordinary space is exactly what &#8220;&nbsp;&#8221; IS FOR. So for the conversion to convert it to ASCII 160, and for trim() NOT to trim that character, seems to me (from your terse description) to be precisely the correct behaviour.</p>
<p>HTH!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: José Luis</title>
		<link>http://www.vineetmanohar.com/2009/06/how-to-trim-no-break-space-when-parsing-html/comment-page-1/#comment-60484</link>
		<dc:creator>José Luis</dc:creator>
		<pubDate>Thu, 29 Sep 2011 14:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.vineetmanohar.com/?p=267#comment-60484</guid>
		<description>Thanks a lot, this article has helped me a lot!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot, this article has helped me a lot!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

