thank you, it works.

i've added this line ActionController::Base.default_charset=("ISO-8859-1")
in the environment.rb.

i've tried with the iso-8859-15 to have the € (euro) symbol but it doesn t
work. If you have another good idea ? ;)

thanks

On 4/17/07, Jack Baty <[EMAIL PROTECTED]> wrote:

Is this a Rails thing settable in environment.rb?

ActionController::Base.default_charset=("UTF-8")

Although I think as of Rails 1.2 UTF-8 is the default. I hate encoding
issues, as I never really know what's "in charge."


--

--------------------------------------------------------------------------------
Jack Baty                  http://jackbaty.com/    (616) 822-5800
Fusionary                  http://fusionary.com/   (616) 454-2357
820 Monroe N.W. Suite 212
Grand Rapids, MI 49503


On 4/17/07, Frederic Do Couto <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to write a rails application serves by mongrel and using
> accentuated characters in the .rhtml page. But Mongrel replace them by
'?' .
>
> It works fine for static pages by defining the charset to iso-8859-1 in
the
> mongrel_mime.yml
>
> But how to change the default encoding (seems to be UTF-8) for the
dynamic
> pages ?
>
> thanks for your help.
> _______________________________________________
> Mongrel-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/mongrel-users
>
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to