Skip to main content
Inspiring
March 12, 2019
Question

SetLocale and Europe/Euro

  • March 12, 2019
  • 1 reply
  • 1955 views

If have some code that sets multiple Locales -->

<cfset currentlocale = SetLocale("English (Canadian)")>

<cfset currentlocale = SetLocale("English (UK)")>

<cfset currentlocale = SetLocale("English (US)")>

In-between these different settings I have #LSCurrencyFormat(GetTotal.TotalValue)#

This displays the currency and the appropriate currency sign.

The question I have is how would I do this for Europe as I now have a need to support Euro's

Thanks

Mark

This topic has been closed for replies.

1 reply

WolfShade
Legend
March 12, 2019

Introducing the LSEuroCurrencyFormat tag.  This should help, I hope.

V/r,

^ _ ^

ACS LLCAuthor
Inspiring
March 12, 2019

unfortunately it didn't work. It is inheriting the last SetLocale, so if I setLocale to UK I get a pound sign, if I set it to US I get a dollar sign

ACS LLCAuthor
Inspiring
March 12, 2019

That should be sent to Adobe Tracker.

If you are using JDK 1.4 or later, then perhaps the LSCurrencyFormat() will work.

V/r,

^ _ ^


I am CF2016 with the JDK 11.0.2

Adobe tracker is for bugs? Not sure how to submit.

LSCurrencyformat does not seem to contain a euro symbol.