Hi!

I opened the html source from the snowreport.php site and I noted that the
strange symbols that you mentioned are htmlencoded
characters. The symbol is °

I had a similar problem on last Monday, but I couldn't complete solve it.

Try the lib: http://htmlentities.rubyforge.org/

or use a regular expression (sub, gsub) to substitute ° for the degrees
symbol.

Regards,

Everaldo

On Sun, Nov 27, 2011 at 1:15 AM, Max <aa...@xmission.com> wrote:

> Hi all,
>
> I am scraping a table off of another site and inserting it onto my
> site.  you can see an example on the initial page at:
> http://mthosts.heroku.com.
> I'm referring to the green box with the snowbird weather and snowfall
> information.
>
> this box has been scraped off of the snowbird site at:
> http://www.snowbird.com/ski_board/snowreport.php
>
> The problem is that on the snowbird site it has degree symbols (°) but
> on my page it shows up as: (�)
>
> I think it has something to do with the encoding but i'm pretty new to
> html etc. and am not sure what i can do to fix this.  I've tried
> substituting the characters and some other things but haven't had any
> success yet.
>
> any ideas?
>
> thanks,
>
> max
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to