Forum: Ruby on Rails RE: Re: strange charecters after redcloth usage

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B29105598b6464efc13b04cb445efa85?d=identicon&s=25 Chris Bruce (Guest)
on 2006-03-21 00:19
(Received via mailing list)
Charlie,

You probably don't have a character encoding specified in your html
code.  The browser is more than likely using a default character
encoding and when you past from your app, it is using a different one
(probably Unicode).

Make sure your html looks something like this (or whatever standard you
want):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


Note the meta tag that sets the character encoding.






Chris
6122ae139470e3776aa36316296f87a3?d=identicon&s=25 Cynthia Kiser (Guest)
on 2006-03-21 02:03
(Received via mailing list)
>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>

May I ask why you recommend utf-8? Is that Ruby's, MySQL's, Open
Office's,
or some other default? I thought the web standard if one did not specify
anything was charset=iso-8859-1 so generally try to use that - but with
mixed success. The main things that mess up my applications are things
from
Microsoft's character sets like curly quotes.
Be09addcbb47f2a684fa5c48bac94149?d=identicon&s=25 David Johnson (Guest)
on 2006-03-21 05:36
(Received via mailing list)
The first 256 codepoints of UTF-8 are identical to ISO-8859-1, except
for 2 that have special meaning to UTF-8.  Some UTF-8 interpreters  will
recognize when these two are followed by illegal characters and process
them as ISO-8859-1.
This topic is locked and can not be replied to.