# Functions to escape and unescape strings in rails

**URL:** <https://www.ruby-forum.com/t/functions-to-escape-and-unescape-strings-in-rails/192002>\
**Category:** Ruby\
**Created:** [July 22, 2010, 9:02am UTC](https://www.ruby-forum.com/t/functions-to-escape-and-unescape-strings-in-rails/192002 "2010-07-22T09:02:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![murfhy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Post date:** [July 22, 2010, 9:02am UTC](https://www.ruby-forum.com/t/functions-to-escape-and-unescape-strings-in-rails/192002/1 "2010-07-22T09:02:01Z")

</div>

i have created an appliation to show the pie chart in pdf, now its  
showing properly, but the thing is that its not showing the labels  
correctly, can anyone help me, pdf of tht ia attached with this.  
also i had a pdf.prawn file with the code as below

pdf.image open(URI.escape(@formatted\_pie\_chart\_url)),:width =\>  
420,:height =\> 150, :at =\> [0, 230]

the result of pdf is attached along with this. in that pi chart i  
wanted to remove an unsuual string 25% with opened and unopened.  
any one please help me
