Wrong information

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:

<?xml version="1.0" encoding="UTF-8"?>

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. :slight_smile: 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

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]