On 20 Jan 2011, at 15:55, Noel F. wrote:
I have stumbled across an issue using ruby, I want to put 105°C into a
text box using ruby however instead of that it is inputting 105 °C.
Can
anybody explain a way around this problem?
Get your encodings straight. Your browser is displaying UTF-8 code as
if it is WindowsLatin or something.
The problem can come from a number of places, but the wrong database
table encoding or the lack of the proper header directive in your HTML
layout are the most likely culprits:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml;
charset=utf-8" />
Best regards
Peter De Berdt
--
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.