[TOC] [Prev] [Next] [Bottom]



<@CHAR>

Syntax

<@CHAR CODE=number [ENCODING=encoding]>

Description

Returns the character that has the ASCII value number.

This meta tag is especially useful for specifying non-printing characters, such as linefeeds (<@CHAR CODE=10>), carriage returns (<@CHAR CODE=13>), and tabs (<@CHAR CODE=9>). Valid values for the number attribute are 1 through 254.


!Note: Numbers above 127 return different characters depending on the character encoding standard used by the operating system on the computer where Tango Server is running.


The number attribute may be a literal value or a meta tag that returns a number.

Examples

<@CHAR CODE=84>

This example returns "T".

<@CHAR CODE=<@POSTARG NAME=charCode>>

This example returns the character that corresponds to the value of the contents of the charCode form field entered by the user.

<@OMIT STR=<@POSTARG NAME=comments> CHARS="<@CHAR CODE=10><@CHAR CODE=9>">

This example returns the comments form field value stripped of any linefeed and tab characters.

See Also

<@ASCII>
<@CRLF>
<@DQ>, <@SQ>
Encoding Attribute



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.