<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="multibyte-characters">
      </a>
      12.13.3 Multi-Byte Character Support for Complex Character Sets
     </h3>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045215297712">
  </a>
  <a class="indexterm" name="idm46045215296256">
  </a>
  <p>
   If you want to add support for a new character set named
   <em class="replaceable">
    <code>
     MYSET
    </code>
   </em>
   that includes multibyte
        characters, you must use multibyte character functions in the
   <code class="filename">
    ctype-
    <em class="replaceable">
     <code>
      MYSET
     </code>
    </em>
    .c
   </code>
   source file in the
   <code class="filename">
    strings
   </code>
   directory.
  </p>
  <p>
   The existing character sets provide the best documentation and
        examples to show how these functions are implemented. Look at
        the
   <code class="filename">
    ctype-*.c
   </code>
   files in the
   <code class="filename">
    strings
   </code>
   directory, such as the files for
        the
   <code class="literal">
    euc_kr
   </code>
   ,
   <code class="literal">
    gb2312
   </code>
   ,
   <code class="literal">
    gbk
   </code>
   ,
   <code class="literal">
    sjis
   </code>
   , and
   <code class="literal">
    ujis
   </code>
   character sets. Take a look at the
   <code class="literal">
    MY_CHARSET_HANDLER
   </code>
   structures to see how they
        are used. See also the
   <code class="filename">
    CHARSET_INFO.txt
   </code>
   file in the
   <code class="filename">
    strings
   </code>
   directory for
        additional information.
  </p>
 </div>
 <br/>
</div>
