swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
function  

utf8-encoded

 
 

Library: UTF-8 text processing (UTF8PAT legacy)
Include: utf8pat.xin
Return type: String

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


Declaration

define string 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

      Other Library Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.