Question

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?

Was it helpful?

Solution

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:

OTHER TIPS

do you have your content-type set?

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top