Skip to main content
Participating Frequently
Aug 24, 2025 5:26 PM UTC
Answered

Errors using Coldfusion 2025 on pages with URL's that contain % encoded UTF-8 characters

I'm moving to a new server running Coldfusion 2025 and have run into an issue when trying to load pages from the server that contain % encoded UTF-8 characters. 

I get from pages with French characters in a folder/path, e.g. https://www.tourdulactemiscamingue.com/o%C3%B9dormir/, "The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing)." Apache Tomcat/10.1.42

From pages in any folder, accented or not, like https://www.tourdulactemiscamingue.com/o%C3%B9dormir/g%C3%AEtes.cfm or https://www.tourdulactemiscamingue.com/quoifaire/activit%C3%A9saquatiques.cfm I get an error report from Coldfusion saying:
"File not found: /quoifaire/activitésaquatiques.cfm" (coldfusion.runtime.TemplateNotFoundException)

I've added:

1) <system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" culture="en-US" uiCulture="en" />
</system.web> to the site web.config

2) uriEncoding=UTF-8 to isapi_redirect.properties

3) URIEncoding="UTF-8" relaxedQueryChars="[]"  relaxedPathChars="[]" to my HTTP/1.1 connector in server.xml

None of these changes made any difference.

IIS logs show proper url encodings.

Is this a bug?


    BKBK
    BKBKCorrect answer
    Community Expert
    Aug 25, 2025 3:32 PM UTC

    Extra info:

    the connectors (server.xml) in my installation don't even have URIEncoding="UTF-8". Also, I don't get any issues with activitéshivernales.cfm after I delete -Dfile.encoding=UTF-8 from jvm.config.


    Rule out the Operating System. On searching the web, I found the following way to ensure that my Windows 10 has UTF-8 encoding:

    "To set UTF-8 encoding in Windows 10, open Settings > Time & language > Language & region, click Administrative language settings, then Change system locale, and finally check the box for "Beta: Use Unicode UTF-8 for worldwide language support" before restarting your computer to apply the changes. This is a system-wide setting that affects how apps handle language data. "
     

    16 replies

    Adobe Employee
    Aug 24, 2025 7:29 PM UTC

    Hello Dan,

     

    Can you please try adding below Java argument, restart cfusion instance and let us know if it works

     

    -Dfile.encoding=UTF-8

     

    Thanks & Regards

    Ravi

    Translate
    Dan GoodAuthor
    Participating Frequently
    Aug 24, 2025 7:52 PM UTC

    Hi Ravi. Thanks for reaching out.
    That made no difference.

    Translate
    BKBK
    Community Expert
    Community Expert
    Aug 24, 2025 8:51 PM UTC
    quote

    Hi Ravi. Thanks for reaching out.
    That made no difference.


    By @Dan Good

    Nevertheless, I would suggest that you continue to use the JVM flag -Dfile.encoding=UTF-8.

     

    Suggestion: add the attribute URIEncoding="UTF-8" to the AJP connector (in \runtime\conf\server.xml), and then restart ColdFusion.

    <Connector protocol="AJP/1.3" URIEncoding="UTF-8" ... etcetera... />

     

    Translate