We recommend using the new Unicode Converter API functions in for new development efforts. For more information see Section 1.6, Unicode Converter and Tasks.
At the workstation, conversions between Unicode and the local code page are supported by a set of conversion tables. The Unicode Filenames table shows the conventions for assigning file names to the tables.
The filenames reflect both a code page (CP) and a country code (CTY). The code page can be 3 or 4 digits. The country code is the country’s 3-digit code for long distance telephone numbers. For example, to represent the English character set (CP=437) using U.S. conventions (CTY=001) the following files are required:
Section 1.4, Supported Code Pages shows the code pages supported by Novell.
Unicode operations fall into two groups: those specific to managing Unicode tables and conversions, and those that perform operations on Unicode strings. This latter group is the Unicode equivalent of standard string.h functions.
A client application must load Unicode tables for the client agent to perform the conversions. Loading the Unicode tables is typically one of the first steps an application takes in accessing Directory Services. Two functions load and unload the tables:
As input, NWInitUnicodeTables requires a specific code page and country code. You can use Internationalization services to read these parameters from the locale. When you no longer need the tables, call NWFreeUnicodeTables.
For many applications, NWInitUnicodeTables and NWFreeUnicodeTables are the only Unicode functions needed. Other Unicode table requests include the following:
For more details about specific functions, see the specific function reference.
NWInitUnicodeTables searches for the tables in the following directories in the order they are listed.
Note that the search path is the last place searched. Consequently, storing the tables in a search path could noticeably increase the amount of time it takes for the tables to load.
These functions manipulate Unicode tables.
These functions perform conversion and comparison operations.