DBCS Support
\The Sandbox \PB History & Future \New In PB8 \DBCS Support
Workspaces
Code Examples
UI changes
Working with 
PB8
Starting PB
System Tree
Library painter
Clip & Output
Source editor
AutoScript
Source Control
Exception
Handling
Web Targets
4GL Web
Pages
Web DW
Scripting
Web DW
Container
Web DW
Events
Server-side
Methods
JavaScript
Includes
HTML
Rendering
EAServer
Profiles
EAS/Existing
Interfaces
EJB Clients
EAS
Transactions
SSL
Connections
Concurrency
Property
Multiple
PB VMs
DB Interfaces
ANSI
Outer Join
Proxy
Connections
Loading
DB Libs
PB.INI/DB Info
Command Line
Deployment
Version
for EXEs
Color Support
New Object
Properties
DW
Expressions
DW
Properties
PowerScript
Functions
SaveObject
OLE Event
DBCS Support
GUIDs & MIMEs

Description

PowerBuilder 8 supports both ANSI and double-byte character sets (DBCS). Any applications that you build in or migrate to PowerBuilder 8 can run in a Windows DBCS environment. If you plan to deploy an application to both DBCS and ANSI environments, make sure the size of controls is large enough to accommodate all character sets that might be used.

Usage

In an ANSI environment, a character is equivalent to a byte. However, in a DBCS environment, byte and character are not equivalent—each character could be one or two bytes. For example, in the edit mask style xxxx, x always represents a character. The mask can hold four bytes in ANSI, and eight bytes in DBCS. You must allocate enough memory space to handle this difference. For example, you may need to change the width of a column of data type char from 40 to 80.

LenW function In DBCS environments, you should use the "wide" version of the Len function, Lenw, to obtain the number of characters in a string. The Len function obtains the number of bytes in the string.

PowerBuilder determines whether to call ANSI or multibyte versions of functions based on the current Windows environment. For example, in a DBCS Windows environment such as Chinese Windows, multibyte functions are called. Using multibyte functions adds to processing time. However, if you only require ASCII data processing, you can force ANSI operations in a DBCS Windows environment with the command-line option /ANSI.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com