next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: "

" -- delineate a string with quotation marks

This method for entering a string involves the use of backslashes as escape characters.

      \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
i1 : x = " \" \f \r \\ \t \013 \u4f60 ";
i2 : ascii x

o2 = {32, 34, 32, 12, 32, 13, 32, 92, 32, 9, 32, 11, 32, 228, 189, 160, 32}

o2 : List
i3 : utf8 x

o3 = {32, 34, 32, 12, 32, 13, 32, 92, 32, 9, 32, 11, 32, 20320, 32}

o3 : List

See also