You are here: Re: [PHP] encoding a + sign « PHP « IT news, forums, messages
Re: [PHP] encoding a + sign

Posted by Rory Browne on 08/01/05 20:25

On 8/1/05, Diana Castillo <diana@hotelkey.com> wrote:
> I used this "%2B" instead of the + sign and it works, what type of encoding
> is that?

%2B looks like something that would appear in a URL, usually in the
QUERY_STRING(which is part of the URL).

&#43; is the format you would use in an XML document itself.

If you're using php check out www.php.net/urlencode and
www.php.net/htmlspecialchars and www.php.net/htmlentities those urls
are from memory, so may not be completely accurate. Let me know if
they're not, and I'll find the right ones for you.

> ----- Original Message -----
> From: "Rory Browne" <rory.browne@gmail.com>
> To: "Diana Castillo" <diana@hotelkey.com>
> Cc: <php-general@lists.php.net>
> Sent: Monday, August 01, 2005 6:43 PM
> Subject: Re: [PHP] encoding a + sign
>
>
> > use &#43;
> >
> > check out www.asciitable.com
> >
> >
> >
> > On 8/1/05, Diana Castillo <diana@hotelkey.com> wrote:
> >> what type of encoding should I use to send a "+" sign via XML?
> >>
> >>
> >> --
> >> Diana Castillo
> >> Destinia.com
> >> C/Granvia 22 dcdo 4-dcha
> >> 28013 Madrid-Spain
> >> Tel : 00-34-913604039 Ext 216
> >> Fax : 00-34-915228673
> >> email: diana@hotelkey.com
> >> Web : http://www.hotelkey.com
> >> http://www.destinia.com
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация