<?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 2011-12-09T20:47:22.916Z--><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) ==> 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>"RGFzc2Vs"</code>.</p> <table width="100%"> <tr> <td> <p align="right"><a class="nav" href="stringtohexbinary.xml">Next</a></p> </td> </tr> </table> </body> </html>