Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Google staticmaps <img> example encoded enough?

1 view
Skip to first unread message

jid...@jidanni.org

unread,
Jan 17, 2012, 10:29:04 PM1/17/12
to
Gentlemen, at
http://code.google.com/apis/maps/documentation/staticmaps/#EncodedPolylines
we observe the Google authors embedding plenty of dubious raw characters
into their <img> tag, <img src= ... }vXaj\h`]ovs@?yi_@r ... alt="Alaska Highway" />
My question is should I just do like them, or should I first run my
string through (which) one of
http://www.w3.org/TR/xpath-functions/#func-encode-for-uri
http://www.w3.org/TR/xpath-functions/#func-iri-to-uri
http://www.w3.org/TR/xpath-functions/#func-escape-html-uri ?
I mean how can I doubt Google?

jid...@jidanni.org

unread,
Jan 19, 2012, 12:04:15 AM1/19/12
to
OK, I'll pick encode-for-uri()! as only it zaps "@", which is not
allowed, according to
http://en.wikipedia.org/wiki/Query_string#URL_encoding
(despite http://tools.ietf.org/html/rfc3986 saying
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
query = *( pchar / "/" / "?" )
)
0 new messages