![](https://seccdn.libravatar.org/avatar/9b3c3a790b500cdb2bbfe34f8db0e867.jpg?s=120&d=mm&r=g)
13 Dec
2005
13 Dec
'05
15:36
Randall R Schulz wrote:
And you may want to add code like
url=`echo "$1" | sed 's/,/%2c/g'`
and use $url in openURL(); then you can also open URLs with a comma (some popular news sites use this).
Ughh. Why would they do that? To be perverse, I suppose.
No, to separate parts of one argument. E.g., if I have to pass a list of numbers as a URL parameter value, the encoding "par=n1,n2,n3" comes quite naturally, doesn't it? That this bites the encoding in openURL is not a big problem after all, one can always URL-encode the comma, as shown above. Cheers, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany