bootstrap-ruby / will_paginate-bootstrap

Integrates the Twitter Bootstrap pagination component with will_paginate
MIT License
388 stars 160 forks source link

Unicode ellipses character breaks apps with internal encoding of ISO-8859-1 (Latin1) #2

Closed f3ndot closed 12 years ago

f3ndot commented 12 years ago

We recently took over a project that requires some odd legacy tweaks. One such tweak is setting the default encoding for the entire app (internal and external) to ISO-8859-1 aka Latin1:

Encoding.default_external = Encoding.find("ISO-8859-1")
Encoding.default_internal = Encoding.find("ISO-8859-1")

As a result, encountering the ELLIPSES constant sent HAML out of whack. I've fixed this by writing in the HTML Entity Code equivalent of the ...:

ELLIPSIS = '…'

I understand this is quite an edge-case, but it could be helpful to some.

nickpad commented 12 years ago

Thanks! I've pushed the new version to rubygems.org.