Working in Multiple Locales Using Actuate Basic Technology This Documentation Has Been Created for Software Version 11.0.5
Total Page:16
File Type:pdf, Size:1020Kb
Working in Multiple Locales using Actuate Basic Technology This documentation has been created for software version 11.0.5. It is also valid for subsequent software versions as long as no new document version is shipped with the product or is published at https://knowledge.opentext.com. Open Text Corporation 275 Frank Tompa Drive, Waterloo, Ontario, Canada, N2L 0A1 Tel: +1-519-888-7111 Toll Free Canada/USA: 1-800-499-6544 International: +800-4996-5440 Fax: +1-519-888-0677 Support: https://support.opentext.com For more information, visit https://www.opentext.com Copyright © 2017 Actuate. All Rights Reserved. Trademarks owned by Actuate “OpenText” is a trademark of Open Text. Disclaimer No Warranties and Limitation of Liability Every effort has been made to ensure the accuracy of the features and techniques presented in this publication. However, Open Text Corporation and its affiliates accept no responsibility and offer no warranty whether expressed or implied, for the accuracy of this publication. Document No. 170215-2-430500 February 15, 2017 Contents About Working in Multiple Locales using Actuate Basic Technology. v Chapter 1 Introduction to locales . 1 About locales . 2 About character sets . 2 About Unicode . 2 About code pages . 3 About the Hong Kong Supplementary Character Set (HKSCS) . 3 About character entry and display . 3 About fonts . 3 About date, time, currency, and number formats . 4 Understanding date and time formats . 4 Understanding currency and number formats . 4 About calendars . 5 About collation sequences . 5 About case mapping . 6 Chapter 2 Formatting report data for multiple locales . 7 About locale precedence . 8 Running reports with Actuate e.Report Designer Professional . 8 About supported locales . 9 Using the locale map . .11 Understanding localemap.xml . .11 About the AB tags . 20 Using localemap.xml . 21 Using localemap.xml with Actuate iServer . 21 Using localemap.xml with Actuate web-based products . 21 Using localemap.xml with e.Report Designer Professional . 22 Creating a custom locale . 22 Specifying a locale with Actuate Information Console . 22 Setting a report’s locale . 23 Setting the Locale property . 23 Setting different locales for generating, viewing, and printing a report . 24 Using GetFactoryLocale( ) . 24 Using GetViewLocale( ) . 25 Using GetPrintLocale( ) . 25 Setting different locales for generating and viewing a report . 25 i Parsing strings with Actuate Basic functions . .26 Using locale-independent parsing . .26 Using the ParseNumeric function . .26 Using the ParseDate function . .27 Understanding locale-dependent parsing . .27 Understanding functions that operate on numeric expressions . .28 Understanding functions that operate on date expressions . .28 Formatting dates, times, currency, and numbers . .29 Formatting dates and times . .30 Formatting currency and numbers . .31 Using a pre-Euro currency symbol . .31 Getting the locale name and locale attributes . .32 Understanding GetLocaleName( ) . .32 Understanding GetLocaleAttribute( ) . .32 Using GetLocaleName( ) and GetLocaleAttribute( ) . .33 Understanding parameter handling . .33 Designing Japanese reports . .34 Using a localized sfdata database and externalized strings . .35 About the localized sfdata database . .35 About the externalized strings . .35 About the hash array library . .36 Processing the text file . .37 Retrieving the correct French string from the hash array . .37 Chapter 3 Understanding report encoding . 39 About report encoding . .40 Setting the ReportEncoding property . .43 Understanding the Language variable . .44 Running reports with e.Report Designer Professional . .44 Working with encoding and Actuate Basic functions . .45 Working with functions that operate on UCS-2 character codes . .45 Using the AscW function . .45 Using ChrW and ChrW$ functions . .45 Using StringW and StringW$ functions . ..