tailieunhanh - ColdFusion Developer’s Guide phần 4

Ngoài ra các thẻ và các chức năng đặc biệt cho các ứng dụng toàn cầu hóa, bạn có thể tìm thấy hữu ích sau đây khi viết một ứng dụng toàn cầu hóa:Tất cả các chức năng thao tác chuỗi. Để biết thêm thông tin, xem danh sách các String chức năng trongChức năng | ADOBE COLDFUSION 8 346 ColdFusion Developer s Guide LSDateFormat Now mm dd yyyy br LSDateFormat Now d-mmm-yyyy br LSDateFormat Now ddd mmmm dd yyyy br LSDateFormat Now d m yy br LSDateFormat Now br hr noshade cfoutput cfloop body html Additional globalization tags and functions In addition to the tags and functions that are specifically for globalized applications you might find the following useful when writing a globalized application All string manipulation functions. For more information see the String functions list in ColdFusion Functions on page 636 in the CFML Reference. The GetTimeZoneInfo function which returns the time zone of the operating system. Handling data in ColdFusion Many of the issues involved with globalizing applications deal with processing data from the various sources supported by ColdFusion including the following General character encoding issues Locale-specific content Input data from URLs and HTML forms File data Databases E-mail HTTP LDAP WDDX COM CORBA Searching and indexing General character encoding issues Applications developed for earlier versions of ColdFusion that assumed that the character length of a string was the same as the byte length might produce errors in ColdFusion. The byte length of a string depends on the character encoding. ADOBE COLDFUSION 8 347 ColdFusion Developer s Guide I Locale-specific content The following sections provide information on how to handle locale-specific content in pages that support multiple locales and how to handle euro values. Generating multilocale content In an application that supports users in multiple locales and produces output that is specific to multiple locales you call the setLocale function in every request to set the locale for that specific request. When processing has completed the locale should be set back to its previous value. One useful technique is to save the user s desired locale in a Session variable once the user has selected it and use the Session variable value to

TỪ KHÓA LIÊN QUAN