# PDF::Writer - Adding a symbol to a string

**URL:** <https://www.ruby-forum.com/t/pdf-writer-adding-a-symbol-to-a-string/117964>\
**Category:** Rails\
**Created:** [October 22, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/pdf-writer-adding-a-symbol-to-a-string/117964 "2007-10-22T21:18:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [October 22, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/pdf-writer-adding-a-symbol-to-a-string/117964/1 "2007-10-22T21:18:47Z")

</div>

I’ve looked through Google and may have the wrong query string so I’m  
hoping  
the excellent people on this list might be able to help.  
Having a hard time getting the trademark symbol added to a string of  
chars.  
using the add\_text\_wrap call if that makes a difference. Need to add  
it  
inline since some of the text is being centered.

TIA,

–  
Richard J Hancock  
Developer/System A.

> **[Professionals Directory - Find Professionals - Look Locally](https://www.looklocally.com/)**
>
> Search the most complete professionals database. Find Professionals.

---

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [October 23, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/pdf-writer-adding-a-symbol-to-a-string/117964/2 "2007-10-23T17:19:06Z")

</div>

Alright. Got the TM symbol in the string…however. When it writes to  
PDF,  
the symbol sometimes appears, sometimes not (depending on the code used)  
and  
extra chars get added in. Tried changing the encoding of the font with  
no  
luck. Anyone have any ideas?

On 10/22/07, Richard H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Richard J Hancock  
> Developer/System A.  
> [LookLocally.com](http://LookLocally.com)

–  
Richard J Hancock  
Developer/System A.
