If, when making your Ajax calls, you pass the returnFormat = "JSON" attribute to your CFC method, then CF will automatically encode the result when creating the JSON output. When passing a JSON value to ColdFusion, inside your CFC method you can use the DeserializeJson() method to decode the value.
Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _____________________________ http://blog.cutterscrossing.com Richard White wrote: > hi > > we are developing an Ajax based system using JavaScript and Coldfusion. > > we have only just started to realise the need for escaping / encoding.... > special characters. how do you guys deal with this, e.g: > > 1) how do we deal with the special characters in JavaScript to ensure that > Coldfusion receives them correctly > 2) how does Coldfusion decode them to read them exactly how they were sent > 3) how does Coldfusion send them back encoded to ensure JavaScript receives > them OK > 4) how does JavaScript then decode them when it receives them > > i would appreciate any advice on where to start looking and any tutorials > there may be to understand this. > > thanks > > richard > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319789 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

