
Introduction to globalization
373
Importance of globalization in ColdFusion applications
The Internet has no country boundaries. Customers can access websites from anywhere in the
world, at any time, or on any date. Unless you want to lock your customers into using a single
language, such as English, to access your site, you should consider globalization issues.
One reason to globalize your applications is to avoid errors and confusion for your customers. For
example, a date in the form 1/2/2003 is interpreted as January 2, 2003 in the United States, but
as February 1, 2003 in European countries.
Another reason to globalize your applications is to display currencies in the correct format. Think
of how your customers would feel when they find out the correct price for an item is 15,000
American dollars, not 15,000 Mexican pesos (about 1600 American dollars).
Your website can also accept customer feedback or some other form of text input. You might want
to support that feedback in multiple languages using a variety of character sets.
How ColdFusion MX supports globalization
ColdFusion MX is implemented in Java. As a Java application, ColdFusion MX uses Java
globalization features. For example, ColdFusion MX stores all strings internally using the
Unicode character set. Because it uses Unicode, ColdFusion can represent any text data from any
language.
In addition, ColdFusion MX includes many tags and functions designed to support globalizing
your applications. You can use these tags and functions to set locales, convert date and currency
formats, control the output encoding of ColdFusion pages, and perform other actions.
Character sets, character encodings, and locales
When you discuss globalization issues, two topics that you must consider are the character sets or
character encodings recognized by the application and the locales for which the application must
format data.
A
character set
is a collection of characters. For example, the Latin alphabet is the character set that
you use to write English, and it includes all of the lower- and upper-case letters from A to Z. A
character set for French includes the character set used by English, plus special characters such as
“é,” “à,” and “ç.”
The Japanese language uses three alphabets: Hiragana, Katakana, and Kanji. Hiragana and
Katakana are phonetic alphabets that each contain 46 characters plus two accents. Kanji contains
Chinese ideographs adapted to the Japanese language. The Japanese language uses a much larger
character set than English because Japanese supports more than 10,000 different characters.
In order for a ColdFusion application to process text, the application must recognize the character
set used by the text. The
character encoding
maps between a character set definition and the digital
codes used to represent the data.
In general use, the terms character set (or charset) and character encoding are often used
interchangeably, and most often a specific character encoding encodes one character set. However,
this is not always true; for example, there are multiple encodings of the Unicode character set. For
more information on character encodings, see
“About character encodings” on page 374
.
Note:
ColdFusion uses the term
charset
to indicate character encoding in some attribute names,
structure field keys, and function parameter names.
Содержание ColdFusion MX
Страница 1: ...Developing ColdFusion MX Applications...
Страница 22: ...22 Contents...
Страница 38: ......
Страница 52: ...52 Chapter 2 Elements of CFML...
Страница 162: ......
Страница 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Страница 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Страница 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Страница 266: ......
Страница 314: ...314 Chapter 14 Handling Errors...
Страница 344: ...344 Chapter 15 Using Persistent Data and Locking...
Страница 349: ...About user security 349...
Страница 357: ...Security scenarios 357...
Страница 370: ...370 Chapter 16 Securing Applications...
Страница 388: ...388 Chapter 17 Developing Globalized Applications...
Страница 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Страница 410: ......
Страница 426: ...426 Chapter 19 Introduction to Databases and SQL...
Страница 476: ...476 Chapter 22 Using Query of Queries...
Страница 534: ...534 Chapter 24 Building a Search Interface...
Страница 556: ...556 Chapter 25 Using Verity Search Expressions...
Страница 558: ......
Страница 582: ...582 Chapter 26 Retrieving and Formatting Data...
Страница 668: ......
Страница 734: ...734 Chapter 32 Using Web Services...
Страница 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Страница 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Страница 788: ......
Страница 806: ...806 Chapter 35 Sending and Receiving E Mail...