After a bit more googling I understand it is a php ‘feature’ to auto-decode a string when it first arrives. I’ve discovered Javascipts encodeurl and php urlencoding/decoding vary so that’s where my problem lies.
I’ve successfully saved, to my server, encoded fields in an sqlexported database so I assume the sqlexport routine takes care of this to some degree?