Encode Image URLs
Opened this issue · 0 comments
bwhet commented
NOTE: Robby needs to be added as a user, too. This one's for him, really.
On News story pages, images with spaces in their URLs cause problems. Facebook can't (or doesn't choose to) read these image paths, and so the image doesn't display when sharing the story via FB. (<img src="http://caes.uga.edu/my image file name.jpg">
)
In ColdFusion there's a URLEncodeFormat function. Is there something similar in JSP? Here's a starting point from StackOverflow.
Here's an example of a story with spaces in its image filenames.