Domanda

I have set up a language file rather than in the database, so I have for example in the language file…

<cfset lang_back_to_results = "< retour aux résultats">

So I have in my cfm page…

<cfoutput>#lang_back_to_results#</cfoutput>

This works fine but it does not correctly display the accent, so I tried to use ASCII and CHR inputs in the language file but with no success…

chr(233) &eacute;

Any ideas on how to display the text correctly?

È stato utile?

Soluzione

You need to have this in the top of your 'language file', and whatever .cfm file you're including it in:

<cfprocessingdirective pageencoding="utf-8" />

See:

Altri suggerimenti

do you have your content-type set?

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top