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

sjis.writer

 
 

Library: Character encodings, Shift JIS (OMFFSJIS)
Import: omffsjis.xmd

Declaration

  export external output function writer
                      into value output output-data


Purpose

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

Usage Note

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

    import "omffsjis.xmd" prefixed by sjis.

Example


  ; Write a Shift-JIS-encoded file named by the first command-line
  ; argument using the stream named "output-file".  Convert
  ; the data from UTF-8 to Shift-JIS prior to writing it to the file.
  import "omffsjis.xmd" prefixed by sjis.
  process
     local stream output-file
     open output-file as sjis.writer into file #args [1]
(Please see the import topic for more on importing.)

        Other Library Functions
   sjis.reader
   sjis.writer
 
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:46 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.