On Mon, 2006-05-08 at 07:57 -0400, Bob Hutchison wrote: > Hi Zed, > <snip> > I've bee playing around with this a bit and tried something this > morning, if I add the following: > > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> > > meta tag to the page it works. Simple. For whatever reason, just > setting the header content type didn't work. > Ah, by default I think Rails returns just a "text/html" content type. Mongrel doesn't have anything to do with the content type of the returned stuff unless it doesn't know the type of a file. Two things you can do:
1) Create a mime.yaml and put an alternative content type in it for text/html. Then tell mongrel to use this configuration file. You could probably steal lots of mime types from apache. 2) Make sure that rails is setting the ; utf-8 ending on all the content you need to be utf-8. I think the first one will actually solve your problem,especially if you have page caching on. <snip> > BTW, Mongrel is working beautifully for me. Nice speedup, and I like > the stuff you did w.r.t. administration. It is also kind of cool how > you can switch between Mongrel and Webrick with a Control-C and a > restart :-) Very nice. Let me know if you run into any more weirdness. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ _______________________________________________ Mongrel-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/mongrel-users
