On Aug 10, 11:55 pm, Calvin Nguyen <[email protected]>
wrote:
> Frederick Cheung wrote:
> > On Aug 10, 10:02 pm, Calvin Nguyen <[email protected]>
> > wrote:
> >> When we render JSON using to_json() we are seeing problems where the
> >> accented 'e' character is getting mangled and causes our calling web
> >> client to fail since it's expecting properly UTF-8 encoded characters.
>
> > What's actually stored in the database ? If you open up a console and
> > find the relevant object in the database what does the name attribute
> > contain ? I don't think that to_json does much more than spit out the
> > data ActiveRecord already has.
>
> > Fred
>
> Here is our record in the datbase:
> 322  Café Records  NULL
>

That's not what I meant. What are the actual bytes stored in the
database ? What encoding does the database think this column is in.
If, in a ruby console, you inspect the bytes contained in the name
column what do you see ?

Fred

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to