O'Reilly logo

Programming ColdFusion MX, 2nd Edition by Rob Brooks-Bilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SetLocale

Synopsis

                  
                  SetLocale(newlocale)

Changes the current locale used by ColdFusion to newlocale for the duration of the current page request. The server’s locale determines how ColdFusion treats and displays numeric, currency, date, and time values. Returns the old locale so that it can be used again if necessary. Valid entries for newlocale are determined by the underlying JRE and operating system of your ColdFusion server. For a complete list of locales available on your server, output the variable server.Coldfusion.SupportedLocales. In general, ColdFusion supports the following locales. They may be referenced with their ColdFusion locale name, or their equivalent Java locale name where appropriate.

ColdFusion Locale

Java locale

Chinese (China)

N/A

Chinese (Hong Kong)

N/A

Chinese (Taiwan)

N/A

Dutch (Belgian)

nl_be

Dutch (Standard)

nl_NL

English (Australian)

en_AU

English (Canadian)

en_CA

English (New Zealand)

en_NZ

English (UK)

en_GB

English (US)

en_US

French (Belgian)

fr_BE

French (Canadian)

fr_CA

French (Standard)

fr_FR

French (Swiss)

fr_CH

German (Austrian)

de_AT

German (Standard)

de_DE

German (Swiss)

de_CH

Italian (Standard)

it_IT

Italian (Swiss)

it_CH

Japanese

ja_JP

Korean

ko_KR

Norwegian (Bokmal)

no_NO

Norwegian (Nynorsk)

no_NO_nynorsk

Portuguese (Brazilian)

pt_br

Portuguese (Standard)

pt_PT

Spanish (Modern)

es_ES

Spanish (Standard)

es_ES

Swedish

sv_SE

In ColdFusion MX, the locale Spanish (Mexican) is no longer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required