RE: Re: strange charecters after redcloth usage


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

Note the meta tag that sets the character encoding.


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.

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs