# Open URI problems with google chart

**URL:** <https://www.ruby-forum.com/t/open-uri-problems-with-google-chart/131078>\
**Category:** Rails\
**Created:** [March 5, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/open-uri-problems-with-google-chart/131078 "2008-03-05T21:00:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Open\_URI\_S\_problems](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/7ba0ec/32.png) [@Open\_URI\_S\_problems](https://www.ruby-forum.com/u/Open_URI_S_problems)\
**Post date:** [March 5, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/open-uri-problems-with-google-chart/131078/1 "2008-03-05T21:00:59Z")

</div>

Hi:

I’m using open-uri for trying to save the png generated with  
google charts. I need to create a pdf report with charts  
generated but I need to save thems in some way. the proble is  
that the url is:

[![](http://chart.apis.google.com/chart?chs=480x280&chd=s:sstrutsAAAA&cht=bvg&chco=8DB1E7&chxt=x,y&chxl=0:%7C6-Jan%7C13-Jan%7C20-Jan%7C27-Jan%7C3-Feb%7C10-Feb%7C17-Feb%7C24-Feb%7C2-Mar%7C9-Mar%7C16-Mar%7C1:%7C0%7C50%7C100%7C150%7C200%7C250%7C300%7C350%7C400%7C450%7C500&chbh=30,10&chtt=Weekly+actual++++++Weekly+Plan++++++Grap+to+date%7C469++++++++++++++++++++0++++++++++++++++++++469&chts=000000,11&chf=c,lg,0,E1EAFB,1,FFFFFF,0&chm=s,3399CC,0,5.0,10.0%7Cs,3399CC,0,5.0,10.0%7C) ](http://chart.apis.google.com/chart?chs=480x280&chd=s:sstrutsAAAA&cht=bvg&chco=8DB1E7&chxt=x,y&chxl=0:%7C6-Jan%7C13-Jan%7C20-Jan%7C27-Jan%7C3-Feb%7C10-Feb%7C17-Feb%7C24-Feb%7C2-Mar%7C9-Mar%7C16-Mar%7C1:%7C0%7C50%7C100%7C150%7C200%7C250%7C300%7C350%7C400%7C450%7C500&chbh=30,10&chtt=Weekly+actual++++++Weekly+Plan++++++Grap+to+date%7C469++++++++++++++++++++0++++++++++++++++++++469&chts=000000,11&chf=c,lg,0,E1EAFB,1,FFFFFF,0&chm=s,3399CC,0,5.0,10.0%7Cs,3399CC,0,5.0,10.0%7C)

And seems that open-uri doesn’t accept pipes ‘|’ , Can anyone  
help me…?

How can I save the images generated for use thems in PDFWriter…

---

<div class="post-metadata">

**Author:** ![Open\_URI\_S\_problems](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/7ba0ec/32.png) [@Open\_URI\_S\_problems](https://www.ruby-forum.com/u/Open_URI_S_problems)\
**Post date:** [April 18, 2009, 1:55am UTC](https://www.ruby-forum.com/t/open-uri-problems-with-google-chart/131078/2 "2009-04-18T01:55:01Z")

</div>

i have the same problem. i keep getting bad uri with the symbol ^?

anyway to make it accept this symbol?
