Quantcast
Channel: Which characters make a URL invalid? - Stack Overflow
Browsing latest articles
Browse All 14 View Live

Answer by relipse for Which characters make a URL invalid?

I came up with a couple regular expressions for PHP that will convert urls in text to anchor tags. (First it converts all www. urls to http:// then converts all urls with https?:// to a href=... html...

View Article



Answer by Mark Amery for Which characters make a URL invalid?

Most of the existing answers here are impractical because they totally ignore the real-world usage of addresses like: https://en.wikipedia.org/wiki/Möbius_strip or...

View Article

Answer by Ciro Santilli 新疆改造中心法轮功六四事件 for Which characters make a URL invalid?

Several of Unicode character ranges are valid HTML5, although it might still not be a good idea to use them. E.g., href docs say http://www.w3.org/TR/html5/links.html#attr-hyperlink-href: The href...

View Article

Answer by Bunyk for Which characters make a URL invalid?

I need to select character to split urls in string, so I decided to create list of characters which could not be found in URL by myself: >>> allowed =...

View Article

Answer by JasonM1 for Which characters make a URL invalid?

To add some clarification and directly address the question above, there are several classes of characters that cause problems for URLs and URIs. There are some characters that are disallowed and...

View Article


Answer by Dominic Sayers for Which characters make a URL invalid?

In your supplementary question you asked if www.example.com/file[/].html is a valid URL. That URL isn't valid because a URL is a type of URI and a valid URI must have a scheme like http: (see RFC...

View Article

Answer by Gumbo for Which characters make a URL invalid?

In general URIs as defined by RFC 3986 (see Section 2: Characters) may contain any of the following 84 characters:...

View Article

Answer by CraigTP for Which characters make a URL invalid?

All valid characters that can be used in a URI (a URL is a type of URI) are defined in RFC 3986. All other characters can be used in a URL provided that they are "URL Encoded" first. This involves...

View Article


Answer by ChrisR for Which characters make a URL invalid?

Not really an answer to your question but validating url's is really a serious p.i.t.a You're probably just better off validating the domainname and leave query part of the url be. That is my...

View Article


Which characters make a URL invalid?

Which characters make a URL invalid? Are these valid URLs? example.com/file[/].html http://example.com/file[/].html

View Article

Answer by puchu for Which characters make a URL invalid?

I am implementing old http (0.9, 1.0, 1.1) request and response reader/writer. Request URI is the most problematic place.You can't just use RFC 1738, 2396 or 3986 as it is. There are many old HTTP...

View Article

Answer by Eli O. for Which characters make a URL invalid?

If you need to have a broader validation that includes emojis (that are used nowadays sporadically in URLS), for example :http://factmyth.com/factoids/you-👏-can-👏-put-👏-emojis-👏-in-👏-urls-👏/And even in...

View Article

Answer by Daniel Viglione for Which characters make a URL invalid?

From the source (emphasis added when needed):Unsafe:Characters can be unsafe for a number of reasons. The space character is unsafe because significant spaces may disappear and insignificant spaces may...

View Article


Answer by BobMilton for Which characters make a URL invalid?

I can't comment on the above answers, but wanted to emphasize the point (in another answer) that allowed characters aren't allowed everywhere. For example, domain names can't have underscores, so...

View Article
Browsing latest articles
Browse All 14 View Live




Latest Images