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

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"?>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

Best regards

Peter De Berdt

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

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,