Are you talking about how this forum does, where it sees a colon followed by a closing parenthesis and replaces it with a smiley emoticon?
//echo -a $chr(58) $+ $chr(41)

Excuse me while I play with these to see which ones works
:| ;|
:} ;}

;/
:\ ;\

;(

:> ;>
:< ;<