Groups
Groups
Sign in
Groups
Groups
comp.infosystems.www.authoring.html
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
Google staticmaps <img> example encoded enough?
1 view
Skip to first unread message
jid...@jidanni.org
unread,
Jan 17, 2012, 10:29:04 PM
1/17/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
1/19/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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