Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I took someone's advice and started encoding my image sources, but Google doesn't seem to be able to decode them.

I probably did something wrong, because basically Google is taking the full path as the image's name.

See this page as an example. If you go on the top most thumbnail and do "Save as", you will see the path is not being decoded.

Should I stop decoding or am I doing it wrong? Should I encode only the image name itself?

Thanks!

share|improve this question
add comment

1 Answer

Just in case someone is looking for the answer, you only need to encode the actual image name. What was going wrong is that I was encoding the / thus removing its intended meaning.

Remember to only encode parts that can be invalid, such as image names, query string, etc.

Cheers!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.