SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Special Characters in HTML
-
May 14, 2008, 11:37 #1
- Join Date
- Feb 2008
- Location
- New Jersey, USA
- Posts
- 374
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Special Characters in HTML
Hi,
So, I just signed up for this site http://www.designerpages.com/, where I can host my company's products.
On my products page, I'm trying to link to my page here:
http://www.foremostgroups.com/K&B/he.../bastille.html
The problem is, when I type in a &, it changes it to & so the page comes up with Error 404.
If I do & it keeps it the same
When I try doing & it makes the link
http://www.foremostgroups.com/K&.../bastille.html
and this also comes up with 404.
Does anyone have any ideas how I can do this so that it will do the & correctly?
-
May 14, 2008, 13:21 #2
- Join Date
- Feb 2008
- Location
- New Jersey, USA
- Posts
- 374
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
nevermind, i got it:
%26
-
May 17, 2008, 22:15 #3
you can also do & for ampersand I think
-
May 17, 2008, 23:46 #4
- Join Date
- May 2006
- Location
- Aurora, Illinois
- Posts
- 15,476
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
& works also for the ampersand.
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
-
May 18, 2008, 05:36 #5
- Join Date
- Jan 2004
- Location
- The Kingdom of Denmark
- Posts
- 2,702
- Mentioned
- 7 Post(s)
- Tagged
- 0 Thread(s)
You can't use & and & in URLs if what you want is a litteral et-ligature. & will be interpreted as an &, and will thus break up the line. Consider the following two examples:
example.com/search.php?query=example%26something%3Dsomething%20else
example.com/search.php?query=example&something=something else
In the first example, query will return example&something=something else, which in the second example, query will return example and something will return something else.
-
May 19, 2008, 07:18 #6
- Join Date
- Feb 2008
- Location
- New Jersey, USA
- Posts
- 374
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
the page would auto-format anything with ampersand to the & and this would return a page not found... %26 was the only one that worked.
Thanks for the help guys!
Bookmarks