Skip to main content
Inspiring
March 12, 2019
Question

SetLocale and Europe/Euro

  • March 12, 2019
  • 1 reply
  • 1969 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

WolfShade
Legend
March 12, 2019

that won't give the single euro sign. I edited my previous message while you were posting, the solution above seems to do the trick


That should be sent to Adobe Tracker.

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

V/r,

^ _ ^