bonjour, i can''t display french ? ,?, or ?... how do i modify the charset of my app ? thanks Fran?ois -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20130329/6cc36768/attachment.html>
You can re-define the #service-method which will be invoked on every request, and there set the correct charset: Camping.goes :Nuts module Nuts def service(*) @headers[''Content-Type''] = ''text/html; charset=utf-8'' super end end // Magnus Holm On Fri, Mar 29, 2013 at 2:58 PM, Francois Sery <sery.francois at gmail.com> wrote:> bonjour, > i can''t display french ? ,?, or ?... > how do i modify the charset of my app ? thanks > > Fran?ois > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list
You need this https://github.com/m-ryan/magic_encoding and probably this https://github.com/whitequark/rack-utf8_sanitizer You will also need to give extra attention to your templates, different templating engines respond differently to the encoding pragma. On 29 mrt. 2013, at 14:58, Francois Sery <sery.francois at gmail.com> wrote:> bonjour, > i can''t display french ? ,?, or ?... > how do i modify the charset of my app ? thanks-- Julik Tarkhanov me at julik.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20130329/8e4f4e52/attachment.html>