Don Mapp wrote:
I have a website that is working fine, except I cannot get it to print
out characters other than plain text.
Any character is plain text.
Characters such as ', :, " and
others like degrees print with the dreaded black diamond with a ?
Then your actual encoding is Latin-1 (8859-1), but the browser is trying
to process it as if it were UTF-8.
Anyone has any idea as to how I might overcome this.
I want to have my website printing out the above special characters.
The concept of “special character” is not really a useful one. They’re
I use MySql database to store text which is printed to the screen.
This is setup with coliation = Latin1_general_ci, but changing this
does not seem to mater.
Collation may not matter, but encoding does. Make sure your DB encoding
is set to something reasonable for your data (generally UTF-8 is a good
choice). MySQL also has the option of setting column encodings; make
sure those are correct.
My Layout has the following:-
I recommend avoiding XHTML. Use HTML 4 or 5 instead. But that’s a
That looks good.
I have changed UTF-8 without success
The part doing the printing in View-Show is:-
<%= @picture.description %>
class description =>
The CSS is irrelevant here.
What version of Ruby are you using? 1.8 and 1.9 deal with text
Sent from my iPhone