I have a page which uses the UTF-8 character set, however the characters are mangled on the page, I think this is just a matter of setting a header "Content-Type: text/html; charset=utf-8" ... I know how to do this in PHP, simply place the following at the top of the page.
<?php header("Content-Type: text/html; charset=utf-8"); ?>
Is there a way to do this in ruby? Can you place a header at the top of a page, like that?
update: Jun 29, 1:20p PST
I'm not using this as part of a rails application. It is for an embedded browser page in a stand-alone application, I can use Javascript and/or Ruby to create dynamic pages.