Re: First stupid post of the year.
| From: | tedd | Date: | Wed, 02 Jan 2008 19:54:05 +0000 |
| Subject: | Re: First stupid post of the year. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266510@lists.php.net to get a copy of this message | ||
At 11:27 AM -0800 1/2/08, Jim Lucas wrote:
Note: You might wonder why trim(html_entity_decode(' ')); doesn't reduce the string to an empty string, that's because the ' ' entity is not ASCII code 32 (which is stripped by trim()) but ASCII code 160 (0xa0) in the default ISO 8859-1 characterset.Ah, that answers a question I posed last week about a gremlin appearing in a string. In a text file,via a Hex Editor it was 0A, but on the server it was 160 with some other character. Now, it makes sense. Thanks, ted -- ------- http://sperling.com http://ancientstones.com http://earthstones.com