Pavel,
I tracked down the problem.  Its a bug in the mongodb ruby driver.  I
thought I had fully checked out the driver, but unfortunately, it is
returning string in ASCII-8BIT.
thanks for your reply, Jon

On Sep 2, 6:03 am, Pavel Kunc <[email protected]> wrote:
> Hi Jon,
>
> I'm using Merb 1.1 with czech characters (UTF-8) without any problems.
> Do you use database driver which is encoding aware? For example for
> PostgreSQL I had to patch pg gem to work with 1.9.1 and support
> encodings.
>
> Pavel
>
> On Sep 1, 11:35 pm, Jon Hancock <[email protected]> wrote:
>
> > I'm using ruby 1.9.1 with merb edge, builds as gem 1.1.
> > A basic app with thin runs just fine.  When I try to include data in
> > utf-8 format (Chinese characters, in this case) from my db, merb is
> > breaking with error:
> > incompatible character encodings: UTF-8 and ASCII-8BIT
>
> > The stack trace is mostly useless.  It ends in my layout at:
> > <%= catch_content :for_layout %>
>
> > I understand to add an encoding comment line to the top of ruby files
> > for 1.9.  But in this case I am at a loss for which file??
>
> > any ideas on how to debug this?
>
> > thanks, Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to