Hi,
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?
Cheers,
Noel
Hi,
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?
Cheers,
Noel
Hi Peter,
Thanks for the help, so is it a problem in the browser or problem with
ruby?
I can manually type 105°C and it works fine.
Regards,
Noel
On 20 Jan 2011, at 15:55, Noel F. wrote:
I have stumbled across an issue using ruby, I want to put 105C 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:
Best regards
Peter De Berdt
Please quote when replying.
Noel F. wrote in post #976306:
Hi Peter,
Thanks for the help, so is it a problem in the browser or problem with
ruby?
Neither exactly; on the evidence, it’s probably a problem with the
programmer.
Did you set your encoding header to UTF-8 as Peter
suggested?
(To be fair, this can be a confusing issue.)
I can manually type 105°C and it works fine.
Regards,
Noel
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs