> Yes, that seems to be Latin-1.  Why are you using Latin-1 and not 
> UTF-{8|16} in the first place?  They are supersets of Latin-1.

I am aware of this, Marnen.

What I don't know is how to get Ruby/Rails to generate UTF-8 and/or 
Unicode.

>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//DE"
>>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="de" lang="de">
>>   <head>
>>     <meta http-equiv="Content-Type" content="text/html; 
>> charset=iso-8859-1">

> You've got a number of problems here due to poor development decisions.
> 
> * You've declared your document as XHTML, but not used an <?xml ?> 
> prolog.  Therefore, it will be interpreted as UTF-8 as described at 
> http://www.w3.org/International/O-charset .


OK ... that sounds like the problem ... I think.

> 
> * But you shouldn't be generating XHTML anyway.  Browser support for 
> XHTML is extremely problematic.  See http://hixie.ch/advocacy/xhtml for 
> further information.  Use HTML 4 or 5 instead.  If you use HTML 4, make 
> sure to install the html_output plugin so that Rails will not use the 
> XML-style <self-closing tag/> syntax, which is not valid in HTML 4.

Ok ... which do you recommend ... 4 or 5?

> 
> * But even with HTML 4, I confess I don't see a single reason not to use 
> UTF-8 on your pages.  It will handle any character you throw at it, so 
> you don't need to use different encodings for different languages.
> 
>> - - - - - --
>> 
>> 
>> I have run Mongrel and Webrick and I get the same results.
>> 
>> I Have run Firefox and IE ... almost the same results
>> 
>> What's the magic formula for getting the rendering engine to think that 
>> the page source is iso-8859-1?
>> 
>> Once I get that done then I will want to know how to get Ruby/Rails to 
>> generate UTF-8 and/or Unicode.
> 
> Don't waste your time with Latin-1.  Go straight to UTF-8.  It will be 
> easier and more versatile.

OK ... so how to I get Ruby/Rails to generate UTF-8?
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to