On Mon, Jul 5, 2010 at 3:16 AM, Fernando Perez <[email protected]> wrote:

> Wait!
>
> I noticed that on my freeBSD box, the locale environment variables are
> not set.
>
> $ locale
> LANG=
> LC_CTYPE="C"
> LC_COLLATE="C"
> LC_TIME="C"
> LC_NUMERIC="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_ALL=
>
>
>
Have you tried setting the LANG environment for your OS.  This is currently
set within
my environment.


> Also this problem does not happen in development mode!
>
> $ ./script/console
> Loading development environment (Rails 2.3.8)
> >> puts Encoding.default_internal
> UTF-8
> => nil
>
> $ RAILS_ENV=production ./script/console
> Loading production environment (Rails 2.3.8)
>
> /usr/local/lib/ruby/gems/1.9/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:244:in
> `read': "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError)
>
>
> Any idea?
>

In regards to Rails 2.3, I'm using 2.3.5 and Rails 2.3.8 as well as the
mysql2 Ruby gem which does UTF-8 by default.  Do
you have a small test case or small application which reproduces the issue?

-Conrad

--
> Posted via http://www.ruby-forum.com/.
>
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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