Ruby on Rails - £ sign troubles

前端 未结 3 1191
囚心锁ツ
囚心锁ツ 2021-01-15 14:26

I have <%= f.label :cost, \"Cost (£/m)\" %> in a form. When the form is rendered the \"£\" sign comes out as �. I am using utf-8 encoding. Why is this ha

3条回答
  •  情深已故
    2021-01-15 14:59

    Either send your page with UFT-8 encoding, or send the pound sign as £ (or £ if you're sending XML rather than HTML).

提交回复
热议问题