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

euc.writer

 
 

Library: EUC (OMFFEUC)
Import: omffeuc.xmd

Declaration

export external string sink function writer
                    into value string sink output-data



Purpose

Use writer to accept UTF-8 encoded data and write that data to a value string sink, its argument, converted from a UTF-8 encoding to a EUC encoding. That is, the program writes UTF-8, but the provided output receives EUC.

Usage Note

To use omffeuc, you must import it into your program using a statement like this:

    import "omffeuc.xmd" prefixed by euc.

(Please see the import topic for more on importing.)

Example


  ; Write a EUC-encoded file named by the first command-line
  ; argument using the stream named "output-file".  Convert
  ; the data from UTF-8 to EUC prior to writing it to the file.
  import "omffeuc.xmd" prefixed by euc.
  process
     local stream output-file
     open output-file as euc.writer into file #args [1]

        Other Library Functions
   euc.reader
   euc.writer
 
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.