Re: Re: How to recognise url in a block of text
| From: | Robin Vickery | Date: | Thu, 19 Oct 2006 11:53:24 +0000 |
| Subject: | Re: Re: How to recognise url in a block of text | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243333@lists.php.net to get a copy of this message | ||
On 18/10/06, AYSERVE.NET <info@ayserve.net> wrote:
Hello Guys, I thought I was home and dry when the program worked fine on my windows but when I ran from my Linus server, I keep getting a url like: http://www.website.com/pdf/ED1.pdf%A0 instead of http://www.website.com/pdf/ED1.pdf.I'd look at the text that you're working on rather than the regexp. It looks like some characterset conversion is going wrong - 0xA0 is the latin-1 non-breaking space character. I'm expect that on your linux machine that it's being converted to %0A at some point which is perfectly valid in a URL. But I'm just guessing. -robin