Hi I have problems with special characters in URL's. What I wanted at first place, is embedding a google chart image, so I've tried this: \starttext \externalfigure[{https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World}] \stoptext which fails with: ! Undefined control sequence. system > tex > error on line 3 in file test.tex: Undefined control sequence ... as far as I can tell it's the "|" symbol where it has problems. I came across this thread: http://www.mail-archive.com/ntg-context@ntg.nl/msg25806.html but no solution there either. Then I've tried to move from externalfigure to useURL, but the same problem exists. For obvious reasons I don't want to use url shorteners, as with this kind of URL I can manipulate the resulting image inside the tex source. Any thoughts or solutions? Adam
Am 16.04.2011 um 20:31 schrieb Reviczky, Adam:
Hi
I have problems with special characters in URL's. What I wanted at first place, is embedding a google chart image, so I've tried this:
\starttext \externalfigure[{https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World}] \stoptext
which fails with: ! Undefined control sequence. system > tex > error on line 3 in file test.tex: Undefined control sequence ...
as far as I can tell it's the "|" symbol where it has problems.
\starttext \externalfigure[https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello\letterbar World][method=png,scale=4000] \stoptext Wolfgang
On Sat, 16 Apr 2011, Wolfgang Schuster wrote:
Am 16.04.2011 um 20:31 schrieb Reviczky, Adam:
Hi
I have problems with special characters in URL's. What I wanted at first place, is embedding a google chart image, so I've tried this:
\starttext \externalfigure[{https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World}] \stoptext
which fails with: ! Undefined control sequence. system > tex > error on line 3 in file test.tex: Undefined control sequence ...
as far as I can tell it's the "|" symbol where it has problems.
\starttext \externalfigure[https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello\letterbar World][method=png,scale=4000] \stoptext
Or better \asciimode \starttext \externalfigure[https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World][method=png] \stoptext Aditya
On Sat, Apr 16, 2011 at 13:31, Reviczky, Adam
! Undefined control sequence. system > tex > error on line 3 in file test.tex: Undefined control sequence ...
as far as I can tell it's the "|" symbol where it has problems.
The | symbol is not allowed unescaped in URLs. As per RFC 3986 section 2.2, the reserved delimiters are: reserved = gen-delims / sub-delims gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" and as per section 2.3, the unreserved characters are: unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" Everything else needs to be %-encoded. If your browser isn't doing so, you'll need to do it manually. mathew -- URL:http://www.pobox.com/~meta/
participants (4)
-
Aditya Mahajan
-
mathew
-
Reviczky, Adam
-
Wolfgang Schuster