How do I store TM characters and R registered characters in my sql table?

Thanks
Brett