I have a list of div, each has an id. The id also performs as a link: "http://en.wikipedia.org/wiki/" + id
is the link to this item on wikipedia, "/image/" + id + ".jpg"
is the local image for this item.
But I have some id with special characters. There are two types (that I found have bug): first, A_(B)
, containing parentheses, second A%C3%A9B
(AéB), containing special letter. I know ()
can be replaced by %28%29
, so it is basically only one type. And I have tested, this kind of name works for image and wiki link.
The problem is, when I use jQuery, $('#' + id)
cannot find those objects with special letters. Anyone has any idea how to deal with it?