String encode Function, please help

Hi,
as we still do not have a native email support I have to use
openurl("mailto:

as we know not all characters are allowed in a url I would need a function that does
encode a string I have into a string that is allowed in a url.

Can someone provide such a short function?

I am playing around myself trying to make a allowed string = “abcdAB123 …”
and than compare char by char from the original string with string.find(allowedchars,char)

but when there are chars like “%” “*” already string.find comes confused.

I guess someone from the ansca team does know best what chars are allowed in the url and
how to convert an original string easy into one where all not allowed chars are removed or elsewhere encoded so I could use open.url(“mailto …”

thx
chris
[import]uid: 4795 topic_id: 15860 reply_id: 315860[/import]