From lists at ruby-forum.com Mon Oct 18 05:12:29 2010 From: lists at ruby-forum.com (Georg M.) Date: Mon, 18 Oct 2010 11:12:29 +0200 Subject: RedCloth, JRuby and national characters In-Reply-To: <509710a18d5ae52efd21741542d5c89f@ruby-forum.com> References: <509710a18d5ae52efd21741542d5c89f@ruby-forum.com> Message-ID: <44b23f593b41e41d820a3c0412f47cfc@ruby-forum.com> Hi Claus, I hit the same issue (Linux, Redcloth 4.2.3). My workaround was to html-escape non-standard characters before passing them to redcloth. It works but my solution is a little bit fragile. Did you find a proper solution? Best, Georg -- Posted via http://www.ruby-forum.com/. From kowalski0123 at gmail.com Mon Oct 18 08:00:48 2010 From: kowalski0123 at gmail.com (Marek Kowalski) Date: Mon, 18 Oct 2010 14:00:48 +0200 Subject: RedCloth, JRuby and national characters In-Reply-To: <44b23f593b41e41d820a3c0412f47cfc@ruby-forum.com> References: <509710a18d5ae52efd21741542d5c89f@ruby-forum.com> <44b23f593b41e41d820a3c0412f47cfc@ruby-forum.com> Message-ID: Hi Georg, I went the same went. Eventually I managed to kind of solve the problem, I have the proper jar generated which handles UTF characters properly. What basicly what needs to be done is to use char (16-bit) datatype in Ragel code instead of byte (8-bit). You can take a look here at my work: http://github.com/kowalski/redcloth Problem is, that when you run rspec now on the new code, there is a number of tests that fails. The difference is the extra whitespaces added to the resulting html code. For me it is no harm so I have this jar working on production for a few months now. Cheers, Marek Kowalski 2010/10/18 Georg M. : > Hi Claus, > > I hit the same issue (Linux, Redcloth 4.2.3). > > My workaround was to html-escape non-standard characters before passing > them to redcloth. It works but my solution is a little bit fragile. Did > you find a proper solution? > > Best, Georg > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards >