In this release, the MPR files are generated using Unicode strings
(UlcUnicodeSBStrings). However, in previous releases, the
MPR files were generated in Unicode of type String. Unless
you are running in compatibility mode, you must migrate your application as
follows:
- Migrate your MPR files. See Migrating MPR files.
- Migrate your application by one of the following ways:
- Convert the hardcoded strings to Unicode strings. For information
on converting strings to Unicode, see Converting Strings to Unicode.
- Add code to convert the data received from Unicode strings into local code
page strings.
- Note:
- This alternative may cause you to lose data if your client and server are not
using the same locale.
Migrate your MPR files by performing the following steps:
- Select
ULC->Tools->NLS
Tools->Migrate pre-R3.0 Unicode MPRs to
new Unicode MPR format.
- Select which MPRs to migrate.
If you are writing a new or migrating a previous application, use the
following classes to ensure that the string is in Unicode format:
- UlcUnicodeSBString
- UlcUnicodeDBString
Use the following methods with the above Unicode classes:
- bindWith
- Replaces strings within the Unicode string. If the arguments are
Strings, the Strings are converted to Unicode before being bound into the
Unicode string.
- bindWith: with:
- Replaces strings within the Unicode string. If the arguments are
Strings, the Strings are converted to Unicode before being bound into the
Unicode string.
- ulcAsLocalString
- Converts the Unicode string to a String in the local codepage
- ulcAsUnicodeString
- Tests if the string is a Unicode string. If the string is not a
Unicode string, converts the string to a Unicode string.
To convert Strings and DBStrings to Unicode, use the
#ulcAsUnicodeString method.