Reputation: 53
In my server I have an instruction like writeDump(URL.vehicle)
, and in my URL I have something like myweb.co.uk?vehicle=Coupé
, but in my code I get Coup?,
does somebody know why is happening it and how can I solve it?
Thanks for your help
Upvotes: 1
Views: 97
Reputation: 11120
In older versions of ColdFusion
Try using URLEndodedFormat()
<a href="myweb.co.uk?vehicle=#URLEncodedFormat(url.vehicle)#">...
In ColdFusion 11 or higher
Try using EncodeForURL()
<a href="myweb.co.uk?vehicle=#EncodeForURL(url.vehicle)#">...
Either one of these will escape out any special characters
Upvotes: 2