Skip to main content
Participant
November 5, 2020
Answered

Problem with cfdirectory function and wrong encode of listed files

  • November 5, 2020
  • 1 reply
  • 182 views
Hi guys, I have a problem regarding the coldfusion function and listing files from the server, we switched the application from cf 9 to the 2016 version and since then when I list files from the folder on the linux system, it returns the wrong encode.
i i did this things and it did not help
<cfprocessingdirective pageencoding="utf-8">
<cfdirectory action="list" name="someDir" directory="directoryToFilder" sort="name ASC" >
<cfdump var="#charsetEncode(charsetdecode(someDir.name,"ASCII"),"UTF-8")#">

in linux changed .bashrc
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=de_DE.UTF-8

Thanks Guys for help




 

    This topic has been closed for replies.
    Correct answer Dusan5C84

    I founded solution 

    .bashrc LC_ALL="de_DE.UTF-8" on linux and after change restart coldfusion application

    1 reply

    Dusan5C84AuthorCorrect answer
    Participant
    November 5, 2020

    I founded solution 

    .bashrc LC_ALL="de_DE.UTF-8" on linux and after change restart coldfusion application