note 92737 deleted from function.trim by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 12:30:34 +0000 |
| Subject: | note 92737 deleted from function.trim by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189670@lists.php.net to get a copy of this message | ||
Note Submitter: jamesp at westcoastaerospace dot com
----
As another poster has pointed out, chr(160) is also important to filter out. This is the ascii
representation of an html "hard space", and it will show up sometimes in your datasources,
especially if the data was copied-and-pasted from a web browser from a page that used hard spaces to
force layout.
This is not just a Windows problem. I am on a Mac and I have had to deal with it too (although the
data in question may have indeed originally come from a windows user, I don't know.)