Skip to main content
Participant
April 13, 2010
Question

Non latin characters in .cfm filename

  • April 13, 2010
  • 1 reply
  • 1442 views

Hi - I have users who want to name files with non latin characters.  i.e.

Логотип_БелРусь_2500x1.cfm

We get a file not found error, it is not an IIS issue and we have UTF-8 encoding and are running CF8.

Yes we can rename the files but for now would like to know if non latin characters are allowed in .cfm file names.

Thank you!

Sapna

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    April 13, 2010

    When I do it like this,

    Логотип_БелРусь_2500x1.cfm

    Timestamp: <cfoutput>#now()#</cfoutput>

    testPage.cfm

    <cfprocessingdirective pageencoding="utf-8">
    <cfoutput>#fileexists(expandpath("Логотип_БелРусь_2500x1.cfm"))#</cfoutput>

    both files produce the expected result.

    Inspiring
    April 13, 2010

    can i ask the locale, OS, version & cf version where that file name works?

    BKBK
    Community Expert
    Community Expert
    April 13, 2010

    PaulH wrote:

    can i ask the locale, OS, version & cf version where that file name works?

    Sure, Paul. The code,

    <cfoutput>
    getLocale(): #getLocale()#<br>
    server.coldfusion.productversion: #server.coldfusion.productversion#<br>
    server.os.name: #server.os.name#<br>
    server.os.version: #server.os.version#
    </cfoutput>

    gives


    getLocale(): English (US)
    server.coldfusion.productversion: 9,0,0,241018
    server.os.name: Windows 2000
    server.os.version: 5.0