framework-one / fw1

FW/1 - Framework One - is a lightweight, convention over configuration, MVC application framework for ColdFusion / CFML.
http://framework-one.github.io
Other
373 stars 141 forks source link

fw1 4.2 (Can not display foreign characters in views) #530

Closed asimakos closed 3 years ago

asimakos commented 3 years ago

I have got the following main Controller default action in fw/1 (framework one 4.2), where i define some rc scope variables to be displayed in views/main/default.cfm.

main.cfc

 function default( struct rc ) {

        rc.name="ΡΨΩΓΔ";
        rc.dupl_name="üößä";
    } 

views/main/default.cfm

 <cfoutput>
    <p> #rc.name# </p>
    <p> #rc.dupl_name# </p>
   </cfoutput>

and finally in layouts/default.cfm

<cfoutput><!DOCTYPE html>
    <html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
            A Simple FW/1 Layout Template
        </title>
    </head>
    <body>
       #body# 
    </body>
    </html>
</cfoutput>

Unfortunately i receive the following output

ΡΨΩΓΔ

üößä

Any idea that could help me as i have used UTF-8 encoding?

Regards

sneiland commented 3 years ago

This has nothing to do with the framework

asimakos commented 3 years ago

Yes indeed I just fixed it. I have to change lucee administration charset settings all to utf-8.

Regards