i think you are wrong. because the init.rb is loaded before
Merb::Bootloader::MimeTypes.run.
then after the Merb::Bootloader::MimeTypes is loaded, my init.rb will
be override!

2008/11/18 Michael Klishin <[EMAIL PROTECTED]>:
>
> 2008/11/18 limux <[EMAIL PROTECTED]>:
>> i use merb + sequel to develope a web app, database is mssql, and code
>> page is cp936.
>> so i have to make gb2312 as the default charset. but i don't know how to do 
>> it?
>
> Merb.remove_mime_type(:html)
> Merb.add_mime_type(:html, :to_html, %w[text/html application/xhtml+xml
> application/html], :charset => "gb2312")
>
> Place it in init file for instance.
> --
> MK
>
> >
>



-- 
云中漫步

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