|
META TOPICPARENT |
name="UnicodeTranscodingFn" |
ILF Callable Unicode Engine Functions |
|
- action - RAW string, action to take on conversion error (see below)
- option - UTF32-string, escape type or substitution string (see below)
- status - shared uint32, set to ICU error code if conversion fails
|
|
> > |
- length - shared uint32, returns the length of the target field.
|
| You can use "action" to control the behavior of this function if a conversion error occurs (in this function, an error occurs when a UTF-32 character cannot be transcoded into the specified encoding). "action" can be one of the following:
- STOP - conversion stops on first error
- SKIP - conversion skip offending character
|
|
-
- STYLE - specifies CSS2 escaping (\XXXXXX )
- JAVA - specifies Java escaping (\uXXXX)
- UNICODE - specifies Unicode escaping (U+XXXXX)
|
|
< < |
-
- DECIMAL - specifies XML decimal escaping (DDDD;)
- X - specifies XML hex escaping (&#xXXXX;)
|
> > |
-
- DECIMAL - specifies XML decimal escaping ()
- X - specifies XML hex escaping ()
|
| Example: |
|
> > | |
| SET TST WORK UCODE 32 = This is a test
*
PASS --- TEMP 32 FIELD SHARE? Y
|
| PASS ESCAPE FIELD SHARE? N
PASS C FIELD SHARE? N
PASS --- SI FIELD SHARE? Y |
|
> > | PASS --- LI FIELD SHARE? Y |
| CALL .UC_FROM_UCODE RESIDENT? N END? N FAIL 0
*
-
- --- TEMP 32 contains "This is a test" in UTF-8 encoding
|
|
- action - RAW string, action to take on conversion error (see below)
- option - UTF32-string, escape type or substitution string (see below)
- status - shared uint32, set to ICU error code if conversion fails
|
|
> > |
- length - shared uint32, returns the length of the target field.
|
| You can use "action" to control the behavior of this function if a conversion error occurs (in this function, an error occurs when a codepage character cannot be transcoded into UTF-32). "action" can be one of the following:
- STOP - conversion stops on first error
- SKIP - conversion skip offending character
|
|
-
- STYLE - specifies CSS2 escaping (\XXXXXX )
- JAVA - specifies Java escaping (\uXXXX)
- UNICODE - specifies Unicode escaping (U+XXXXX)
|
|
< < |
-
- DECIMAL - specifies XML decimal escaping (DDDD;)
- X - specifies XML hex escaping (&#xXXXX;)
|
> > |
-
- DECIMAL - specifies XML decimal escaping ()
- X - specifies XML hex escaping ()
|
| Example: |
|
> > | |
| PASS TST WORK UCODE 4096 FIELD SHARE? Y
PASS --- TEMP 32K FIELD SHARE? Y
PASS UTF-16LE FIELD SHARE? N
|
| PASS ESCAPE FIELD SHARE? N
PASS DECIMAL FIELD SHARE? N
PASS --- SI FIELD SHARE? Y |
|
> > | PASS --- LI FIELD SHARE? Y |
| CALL .UC_TO_UCODE RESIDENT? N END? N FAIL 0
*
-
- WORK UCODE 4096 contains UTF-32 version of --- TEMP 32K
|