@thelazyone: A20. Must be something else in your code. Can you post the complete program?
Here my program with encoding (Space only):
dev = "ESP1"
st = 0
p = 2
Pi p st
print "ESP ist waiting for Pin " & p & " to change..."
interrupt p [gpio]
Wait
[gpio]
Pi p nst
if nst = 0 then
url = "192.168.178.23/esp/pin.php?Action=Message&mfrom=" & dev & "&mto=System&mtype=1&mess=Door/Window opened äöüß"
gosub [urlencode]
print wget(url)
else
url = "192.168.178.23/esp/pin.php?Action=Message&mfrom=" & dev & "&mto=System&mtype=2&mess=Door/Window closed äöüß"
gosub [urlencode]
print wget(url)
end if
st = nst
wait
[urlencode]
url = replace(url," ", "+")
print url
return