<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000656.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T01:45:15</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#54184" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#49266" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#44746" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#36129" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#34371" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#54184">
		<title>coldfusion/7/htmldocs/00000656.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#54184</link>
		<description>The non-breaking space, chr(160), is not a whitespace character, it merely looks like one.  There is a bug in the Mozilla core due to a similar misguided assumption (0xA0 is converted to 0x20 in text serialization).  cf. https://bugzilla.mozilla.org/show_bug.cgi?id=218277</description>
		<dc:creator>jon.wolski</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-10-11T09:46:47</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#49266">
		<title>coldfusion/7/htmldocs/00000656.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#49266</link>
		<description>Found a freaky error with Trim().&lt;br /&gt;&lt;br /&gt;When editing a long string, if you have single apostrophies, after running a Trim(), it doubles it to be two apostrophies.&lt;br /&gt;&lt;br /&gt;I've seen this in CFMX6.1 as well as CFMX7.</description>
		<dc:creator>Phil Arnold</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-05-31T14:05:43</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#44746">
		<title>coldfusion/7/htmldocs/00000656.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#44746</link>
		<description>Additionally, it might be useful to note what characters Trim() does *not* remove.  The non-breaking space, chr(160), is not handled by this function.  Firefox seems to convert form fields containing this value to normal spaces (chr(32)), but IE6 leaves them as-is.&lt;br /&gt;&lt;br /&gt;I created a function, MyTrim, to handle this type of character, but it would be nice to have a more elegant solution:&lt;br /&gt;&lt;br /&gt;&lt;cffunction name=&quot;MyTrim&quot; returntype=&quot;string&quot; output=&quot;false&quot;&gt;&lt;br /&gt;	&lt;cfargument name=&quot;s&quot; type=&quot;string&quot; required=&quot;yes&quot;&gt;&lt;br /&gt;	&lt;cfreturn Trim(Replace(s, chr(160), &quot; &quot;, &quot;ALL&quot;))&gt;&lt;br /&gt;&lt;/cffunction&gt;</description>
		<dc:creator>pablo_s</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-02-01T08:57:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#36129">
		<title>coldfusion/7/htmldocs/00000656.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#36129</link>
		<description>Good catch! I checked the source code and saw that we just call java.lang.String.trim(), so then I looked at the JavaDocs for the trim method and noticed this note: &quot;... in fact, it trims all ASCII control characters as well.&quot;&lt;br&gt;&lt;br&gt;I entered doc bug 60453.</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-06-29T12:46:34</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#34371">
		<title>coldfusion/7/htmldocs/00000656.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000656.htm#34371</link>
		<description>&quot;Spaces&quot; seems to be broadly defined. trim() seems to remove at least some non-print characters too, e.g. chr(14). It would be good to know exactly what it does and doesn't trim.</description>
		<dc:creator>matthewes</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-06-02T19:10:31</dc:date>
	</item>
	</rdf:RDF>

