![]()  | 
 
  
  | 
||||
![]() ![]() ![]() ![]() ![]() ![]() ![]()  | 
    |||||
| 
 | 
||||||
| Related Concepts | Other Library Functions | |||||
| pattern | 
utf8.char | 
| 
Library: UTF-8 (OMUTF8)
 Import: omutf8.xmd  | 
utf8.char
You can use utf8.char as a pattern to match UTF-8 encoded characters in your input data.
The following program converts a UTF-8 encoded file to a long character encoding (2 bytes for every character):
  import "omutf8.xmd" prefixed by utf8.
  
  process
      submit file #main-input
  
  find utf8.char => char
      output "2f0b" % utf8.code-point of char
For other related constants and keywords, see the UTF-8 text processing library.
| 
Related Concepts Character set encoding Pattern matching  | 
Other Library Functions utf8.byte-order-mark utf8.char utf8.code-point utf8.encoding utf8.multi-byte-char utf8.omutf8-version utf8.single-byte-char  | 
Copyright © Stilo International plc, 1988-2008.