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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris B. (Guest)
on 2006-03-21 01:19
(Received via mailing list)

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en" xml:lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Note the meta tag that sets the character encoding.

Cynthia K. (Guest)
on 2006-03-21 03: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
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
Microsoft's character sets like curly quotes.
David J. (Guest)
on 2006-03-21 06: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.