jarrett / rbbcode

Converts BBCode to HTML. Gracefully handles invalid input. Built on Treetop.
41 stars 9 forks source link

Fixed errors with ruby 1.9 (UTF-8 and 2 other errors) #10

Closed aq1018 closed 13 years ago

aq1018 commented 13 years ago

Hi,

I fixed UTF-8 error in ruby 1.9. It is also backwards compatible with 1.8.7, the basic idea is to use #each_char instead of #each_byte in 1.9. I added a switch so it uses different approaches with different versions of ruby

jarrett commented 13 years ago

Thanks! I've pulled in your changes to master and released a new version of the gem (0.1.11).