Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Escape charachters

 
naro pad
Ranch Hand
Posts: 58
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the following problem. I have a page which gets data from a database and load them into a table. One table column is a hyberlink(webuijsf:hyperlink).It's working find but I notice that when in my data I have let say "Michael's" the whole table crash. If I remove the hyperlink and make it static text is ok and also if I make the data Michael without the ' character is also working. Is there any solution for that?

Thanks
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I know what you mean. If you're building a hyperlink like "http://www.michael's-store.com" or "http://mysite.com/michael's/home", those are not valid URLs. Although many web browsers are generous with what sorts of characters they'll allow in hyperlinks, it's not a good idea to push the limits. There's an RFC that defines the precise legal syntax for Uniform resource Locators. It's RFC 1738 (http://www.faqs.org/rfcs/rfc1738.html).

If you're using a legal URL and your link caption text has an apostrophe in it, that shouldn't be a problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!