<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="extensions" page="functions" subpage="stringtobase64binary"/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: saxon:string-to-base64Binary()</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: saxon:string-to-base64Binary()"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>saxon:string-to-base64Binary()</h1>
      <p><b>saxon:string-to-base64Binary($in as xs:string, $encoding as xs:string) ==&gt; xs:base64Binary</b></p>
      <p>This function takes as input a string and the name of a character
encoding (for example "UTF8"). It encodes the contents of the string value as a sequence of bytes
using a particular encoding, and returns the <code>xs:base64Binary</code> representation
of this sequence of bytes.</p>
      <p>For example, the call <code>saxon:string-to-base64Binary("Dassel", "UTF8")</code> returns the
 <code>xs:base64Binary</code> value  whose lexical representation is <code>"RGFzc2VsIA=="</code>.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="stringtohexbinary.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>