Euro symbol

When we use lscurrencyformat, it doesn’t seem to be displaying the Euro symbol correctly. With this script:

<cfset setlocale("french")>
<cfoutput>#lscurrencyformat(10)#</cfoutput>

We see:

10,00 ¤

Is there a trick to have Lucee display 10,00 € with the right symbol?

Simon

OS: Windows
Java Version: 8 and 11
Tomcat Version: 9.0.35
Lucee Version: 5.2.5 and 5.3.6

I think french is only a set for language, not for country. This shoukd work:

<cfset setlocale("fr_FR")>
<cfoutput>
#lscurrencyformat(10)#
</cfoutput>

Works a charm… thanks Andreas

1 Like

It’s always a pleasure to help.

For completeness of this post, I’m posting here how to get a valid list of all valid locales for your cf engine

<cfdump var="#Server.Coldfusion.SupportedLocales#">

However, setting these locales as ICU (International Components of Unicode) as I mentioned above should just work, and these are usually better suited for automatization (language_COUNTRY)