PowerBuilder 10 is Unicode enabled—it uses Unicode character encoding internally. This lets your PowerBuilder 10 applications process data in multiple languages and display multiple languages on a single page.
The source code in PowerBuilder 10 PBLs is encoded in UTF-16LE. UTF-16LE is a Unicode encoding scheme that serializes a UTF-16 code unit sequence as a byte sequence in little-endian format, in which multiple-byte numerical values are stored with the least significant byte first. For a detailed description of Unicode encoding schemes, see section 3.10 in the Unicode Standard, Version 4.0.0 at http://www.unicode.org/versions/Unicode4.0.0/ .
PBLs developed in earlier versions of PowerBuilder contain source code in ANSI or DBCS format. When you migrate applications to PowerBuilder 10, each PBL is first migrated to the new version of PowerBuilder, as in previous releases. Then PowerBuilder converts the source code from ANSI or DBCS to Unicode, performs a full build, and saves the source code back to the same file. For more information, see "PowerBuilder libraries and migration".
Any text entered in a PowerBuilder 10 application is automatically converted to Unicode format, and the string and character PowerScript datatypes hold Unicode data only. Any ANSI or DBCS characters assigned to these datatypes in migrated applications are converted internally to Unicode encoding.
The behavior of string manipulation functions on SBCS platforms remains the same in PowerBuilder 10 as in previous versions and no changes to code are required. However, there are differences in the behavior of these functions on DBCS platforms, and for some functions an additional syntax has been added to provide backward compatibility. For more information, see "String-related functions".
Some file manipulation functions have also been changed, and additional functions have been added. For more information, see "File-related functions".
When you export an object to a .sr* file, you can choose to export it in ANSI, HEXASCII, UTF-8, or UTF-16LE formats. When you import a file with any format, PowerBuilder converts it to Unicode. For more information, see "Exporting and importing source".
For more information
This change affects several areas of PowerBuilder application development. For more information, see Unicode-Related Changes.