User Guide

Table Of Contents
414 Chapter 17: Developing Globalized Applications
Functions for controlling and using locales
ColdFusion MX provides the following functions that let you specify and identify the locale and
format text based on the locale:
ToBase64
encoding Specifies the character encoding of the string being
converted to Base 64.
ToString
encoding Returns a string encoded in the specified character
encoding.
URLDecode
charset Specifies the character encoding of the URL being
decoded.
URLEncodedFormat
charset Specifies the character encoding to use for the URL.
Tag or function Use
GetLocale
Returns the current locale setting.
GetLocaleDisplayName
Returns the name of a locale in the language of a specific locale. The
default value is the current locale in the locale’s language..
LSCurrencyFormat
Converts numbers into a string in a locale-specific currency format. For
countries that use the euro, the result depends on the JVM version.
LSDateFormat
Converts the date part of a date/time value into a string in a locale-
specific date format.
LSEuroCurrencyFormat
Converts a number into a string in a locale-specific currency format.
Formats using the euro for all countries that use euro as the currency.
LSIsCurrency
Determines whether a string is a valid representation of a currency
amount in the current locale.
LSIsDate
Determines whether a string is a valid representation of a date/time
value in the current locale.
LSIsNumeric
Determines whether a string is a valid representation of a number in the
current locale.
LSNumberFormat
Converts a number into a string in a locale-specific numeric format.
LSParseCurrency
Converts a string that is a currency amount in the current locale into a
formatted number. For countries that use the euro, the result depends
on the JVM version.
LSParseDateTime
Converts a string that is a valid date/time representation in the current
locale into a date-time object.
LSParseEuroCurrency
Converts a string that is a currency amount in the current locale into a
formatted number. Requires euro as the currency for all countries that
use the euro.
LSParseNumber
Converts a string that is a valid numeric representation in the current
locale into a formatted number.
Tag or function Attribute or
parameter
Use