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?

有帮助吗?

解决方案

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:

其他提示

do you have your content-type set?

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top