hi there
i like to open the email app from the device and give some basic data
system.openURL( “mailto:?subject=My%20Subject&body=”… datawert)
works fine…BUT
when the datawert does has spaces i get “is not supported by the simulator”
on the real device it just crash.
when i try to replace the space with “%20” i use
datawert = string.gsub( datawert, " ", “%20” )
but here i get the problem % is a function so i get:
invalid capture index
stack traceback:
[C]: ?
[C]: in function ‘gsub’
now what 
first how to replace " " with %20
and second maybe solves itself by that 
chris
[import]uid: 4795 topic_id: 14876 reply_id: 314876[/import]