I am migrating an application written in Adobe Coldfusion to Lucee, and I was using XMLFormat. This function encoded special characters such as accents (àéêôî). On Lucee, XMLFormat does not encode accents, but EncodeForXML does.
I know it is now better to use EncodeForXML, but I was wondering if it was a normal behavior that XMLFormat does not return the same result? Should I report a bug or is it not worth it given that XMLFormat is deprecated?
#EncodeForXML("École àéêôî")# <!--- Return École àéêôî ---> #XMLFormat("École àéêôî")# <!--- Return École àéêôî --->
For now I will try to overwrite the XMLFormat function with my own XMLFormat tag that will use EncodeForXML behind the scene. I need to keep my application cross-compatible for the moment.
OS: Windows Server 2016 (10.0) 64bit
Java Version: 1.8.0_181 (Oracle Corporation) 64bit
Tomcat Version: Apache Tomcat/8.5.33
Lucee Version: Lucee 184.108.40.206-SNAPSHOT