Add Special Characters to Form Letters and Emails

Written by Mason Davis

Last published at: January 11th, 2022

Share this article:

You can add characters after (or before) a non-blank field in a form letter or email using the following syntax at the start or end of the field name: “+nnn” where nnn is the 3 digit decimal ASCII code of the character you wish to add (see table below).


For example, {+044+032Matter.Inventor3+033} would add to the form “, John Smith!” if the matter has 3 inventors or “” (nothing) if it doesn’t. This lets you put spaces or new lines between fields in a form if they have data without adding spaces or blank lines if the fields don’t have data. This is useful if a field may or may not have data.


Another example could be displaying the matter client if a value exists, or show nothing if it does not exist. {+067+108+105+101+110+116+058+032Matter.Client+013} would display nothing if there is no value for client. But if there is a value, each 3-digit number represents a character to display based on the table below. For example +067+108+105+101+110+116+058+032 spells out Client: along with a space. The +013 after Matter.Client represents a carriage return.

 

Code Character   Code Character
000 NUL (Null char.)   032 SP (Space)
001 SOH (Start of Header)   033 ! (exclamation mark)
002 STX (Start of Text)   034 " (double quote)
003 ETX (End of Text)   035 # (number sign)
004 EOT (End of Transmission)   036 $ (dollar sign)
005 ENQ (Enquiry)   037 % (percent)
006 ACK (Acknowledgment)   038 & (ampersand)
007 BEL (Bell)   039 ' (single quote)
008 BS (Backspace)   040 ( (left opening parenthesis)
009 HT (Horizontal Tab)   041 ) (right closing parenthesis)
010 LF (Line Feed)   042 * (asterisk)
011 VT (Vertical Tab)   043 + (plus)
012 FF (Form Feed)   044 , (comma)
013 CR (Carriage Return)   045 - (minus or dash)
014 SO (Shift Out)   046 . (dot)
015 SI (Shift In)   047 / (forward slash)
016 DLE (Data Link Escape)   048 0  
017 DC1 (XON)(Device Control 1)   049 1  
018 DC2 (Device Control 2)   050 2  
019 DC3 (XOFF)(Device Control 3)   051 3  
020 DC4 (Device Control 4)   052 4  
021 NAK (Negative Acknowledgement)   053 5  
022 SYN (Synchronous Idle)   054 6  
023 ETB (End of Trans. Block)   055 7  
024 CAN (Cancel)   056 8  
025 EM (End of Medium)   057 9  
026 SUB (Substitute)   058 : (colon)
027 ESC (Escape)   059 ; (semi-colon)
028 FS (File Separator)   060 (less than sign)
029 GS (Group Separator)   061 = (equal sign)
030 RS (Request to Send)   062 (greater than sign)
031 US (Unit Separator)   063 ? (question mark)

 

Code Character   Code Character
064 @ (AT symbol)   096 `  
065 A     097 a  
066 B     098 b  
067 C     099 c  
068 D     100 d  
069 E     101 e  
070 F     102 f  
071 G     103 g  
072 H     104 h  
073 I     105 i  
074 J     106 j  
075 K     107 k  
076 L     108 l  
077 M     109 m  
078 N     110 n  
079 O     111 o  
080 P     112 p  
081 Q     113 q  
082 R     114 r  
083 S     115 s  
084 T     116 t  
085 U     117 u  
086 V     118 v  
087 W     119 w  
088 X     120 x  
089 Y     121 y  
090 Z     122 z  
091 [ (left opening bracket)   123 { (left opening brace)
092 \ (back slash)   124 | (vertical bar)
093 ] (right closing bracket)   125 } (right closing brace)
094 ^ (caret cirumflex)   126 ~ (tilde)
095 _ (underscore)   127 DEL (delete)