<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>" -- delineate a string with quotation marks</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="__sh_sp__Hash__Table.html">next</a> | <a href="___Function.html">previous</a> | <a href="__sh_sp__Hash__Table.html">forward</a> | <a href="index.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>" -- delineate a string with quotation marks</h1> <div><p>This method for entering a string involves the use of backslashes as escape characters.</p> <pre> \n newline \f form feed \r return \\ \ \" " \t tab \xxx ascii character with octal value xxx \uxxxx unicode character with hex value xxxx, encoded with utf-8</pre> <table class="examples"><tr><td><pre>i1 : " \" \f \r \\ \t \013 \u4f60 " o1 = " \ 你 </pre> </td></tr> <tr><td><pre>i2 : ascii oo o2 = {32, 34, 32, 12, 32, 13, 32, 92, 32, 9, 32, 11, 32, 228, 189, 160, 32} o2 : List</pre> </td></tr> <tr><td><pre>i3 : utf8 ooo o3 = {32, 34, 32, 12, 32, 13, 32, 92, 32, 9, 32, 11, 32, 20320, 32} o3 : List</pre> </td></tr> </table> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="___String.html" title="the class of all strings">String</a> -- the class of all strings</span></li> <li><span><a href="__sl_sl_sl.html" title="delineate a string with slashes">///</a> -- delineate a string with slashes</span></li> <li><span><a href="_ascii.html" title="ASCII character conversion">ascii</a> -- ASCII character conversion</span></li> <li><span><a href="_utf8.html" title="encode and decode unicode utf-8-encoded strings">utf8</a> -- encode and decode unicode utf-8-encoded strings</span></li> </ul> </div> </div> </body> </html>