Home | Previous Page | Next Page   Database Server Features > Locale Support For C User-Defined Routines (IDS and DB API) >

Non-ASCII Characters in Source Code

Non-ASCII characters might appear in these contexts in a C-UDR source file:

In C-Language Statements

The C compiler must recognize the code set that you use in your C-language statements. The capabilities of your C compiler might limit your ability to use non-ASCII characters within the C-language statements in a UDR source file. For example, some C-language compilers support multibyte characters in literals or comments only.

If the C compiler does not fully support non-ASCII characters, it might not successfully compile a UDR that contains these characters. In particular, the following situations might affect compilation of your UDR:

Tip:
The C compiler must also recognize the ASCII code set to be able to interpret the names of the DataBlade API functions within your C UDR.

In SQL Statements

In C UDRs, SQL statements occur as literal strings to the mi_exec( ) and mi_prepare( ) functions. The C compiler does not parse these literal strings. Therefore, it does not need to recognize the code set of the characters in these SQL statements.

Within a C source file, you can use non-ASCII characters in SQL statements for the following objects:

Important:
To use non-ASCII characters in your SQL statements, your server-processing locale must include either a code set that supports these characters or a code set that is compatible with the character code set. For information on how to perform code-set conversion, see Character Strings in UDRs.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]