swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
    Related Concepts   Other Library Functions  
function   utf8-encoded   Available in:
Standard
Professional
Enterprise

Library: utf8pat - UTF-8 text processing
Include: utf8pat.xin
Return type: String
Returns:       

A string representing the UTF-8 encoding of the specified Unicode character code.


Declaration

  define stream function utf8-encoded
      value integer n


Purpose

You can use utf8-encoded to convert an integer containing a Unicode character code to a string of bytes containing the UTF-8 encoding of that character code.

The following program converts a long character encoding (2 bytes per character) to a UTF-8 encoding:

  include utf8pat.xin

  process
      submit file #main-input

  find any{2} => char
      output utf8-encoded binary char

      Related Concepts
   Character set encoding
 
Other Library Functions
   multi-byte-utf8-char
   single-byte-utf8-char
   utf8-char
   utf8-char-number
   utf8-encoded
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ ERRORS ]

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:45 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.