jlong / radius

A small, but powerful tag-based template language for Ruby modeled after the ones used in MovableType and TextPattern. It has tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...).
MIT License
101 stars 21 forks source link

Issue with Radius tag in Ruby 1.9.2 #13

Closed gsonicis closed 12 years ago

gsonicis commented 12 years ago

I am using rails 2.3.11 and ruby 1.9.2 with RVM. Ex:- When I am passing HTML content along with the radius tag,then the Radius Parser is returning unwanted characters like \r\n and [\" and multiple slashes before the double quotes.

Like :- "<p align=\\"left\\">" I am using radius gem 0.7.1.

xavierRiley commented 12 years ago

I've just run into this - it's to do with the Utility array_to_s method - switching down to ree or 1.8.7 should fix it for now.

UnConundrum commented 12 years ago

Is there any chance someone on the development team is looking into this?

jomz commented 12 years ago

I got bitten by this as well. I don't know your use-cases, but for me it had to do with the fragment cacher extension sending non-UTF8 content when reading from the cache. I'm not sure if it's radius' task to force encoding, but the referencing patch above fixes this for me.