Page 1 of 1

Avoid use of chars like & and spaces in image filenames

PostPosted: Wed Jan 26, 2005 9:34 am
by stubbsy
This came up in another post. Thought I'd share.

If you have a low ASCII value character like & or a space in an image name the img tags won't work to embed the image in a post because HTML doesn't like such characters. You can avoud this by using the HTML % or &# syntax instead (eg you'd use %26 for & and %20 for a space). If the url being used comes from a posted html (eg on pixspot) this is done for you, but if you type it by hand this can be a trap.

Basically any character in the first column in this useful chart should be replaced by the text in the second column.

For example the first below fails, the second doesn't. Only diff is use of %26 and %20.

This is the only non D70 pic in my galleries - taken with my old Kodak DC4800.

Image

Image

PostPosted: Wed Jan 26, 2005 10:01 am
by Onyx
Great tip Stubbsy, thanks for the post.


That's alot of duck-like creatures! ;)

PostPosted: Wed Jan 26, 2005 11:52 am
by stubbsy
onyx wrote:That's alot of duck-like creatures!

Yep. Though it was good one to use for that very reason :D :D :D

PostPosted: Wed Jan 26, 2005 1:59 pm
by MCWB
All we need is a brick wall in the background. :lol: