I would like to copy a url to a richtextbox on a form. This particular url
is actually a link to a jpeg sitting on a windows server. I have set the
box's DetectURLs property to true. To make matters more complicated, this
url has spaces in it.
The actual location is as follows: \\<Server
name>\docdirectory\QUALITY\Safety Tm Inspections\Pictures\cabinet.jpg This
will display properly in Internet Explorer.
However in order to get the link to work properly within the richtextbox I
have to enter the link as follows: file://<server
name>/docdirectory/QUALITY/Safety%20Tm%20Inspections/Pictures/cabinet.jpg
Could someone please explain what is happening here or point me to a
relevant reference?
The %20 replacement is URL encoding for a space. the % in a URL is an escape
character for a URL and the following 2 digits are hex digits which represent
the ascii character code. In this case its 20 which is 32, the character code
for a space.
This way of doing things is standard URL encoding.

Signature
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
> I would like to copy a url to a richtextbox on a form. This particular url
> is actually a link to a jpeg sitting on a windows server. I have set the
[quoted text clipped - 11 lines]
> Could someone please explain what is happening here or point me to a
> relevant reference?
B. Chernick - 20 Jun 2007 17:33 GMT
The %20 I can understand. It's these two apparently separate formats to the
same file that have me confused (\\<server> vs file://<server>) and more
importantly how to make use of them. (One's a true URL and one's a windows
networking address? It's been a while since my last theory class. :-)
> The %20 replacement is URL encoding for a space. the % in a URL is an escape
> character for a URL and the following 2 digits are hex digits which represent
[quoted text clipped - 18 lines]
> > Could someone please explain what is happening here or point me to a
> > relevant reference?