2247134155 / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

js file(s) have a wrong encoding for including in Rails 3.1 via sprockets #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The file(s) are encoded as ISO-8859 with CRLF terminators, but ideally should 
be UTF-8 with LF terminators to work nicely with Rails. The iso-8859 encoding 
throws an exception with Sprockets under Rails 3.1.1.

What steps will reproduce the problem?
1. Drop jquery.fn.gmap.js into app/assets/javascripts/
2. include it in a page with javascript_include_tag 'jquery.fn.gmap.js'
3. load the page in browser and should see at Sprockets::EncodingError with 
'invalid UTF-8 byte sequence'

What is the expected output? What do you see instead?
It should render the page and include the jquery.fn.gmap.js file.

What version of the product are you using? On what operating system?
jquery-ui-map-3.0-alpha with Rails 3.1.1

Original issue reported on code.google.com by triems...@gmail.com on 20 Oct 2011 at 2:59

GoogleCodeExporter commented 9 years ago

Original comment by johansalllarsson on 20 Oct 2011 at 5:44

GoogleCodeExporter commented 9 years ago

Original comment by johansalllarsson on 20 Oct 2011 at 5:45

GoogleCodeExporter commented 9 years ago
I had the same issue (jquery.ui.map.full.min2.js has a invalid UTF-8 byte 
sequence) on the minified version, and in my case it arrived from the "ä" in 
Säll.

Original comment by marco.az...@gmail.com on 13 Nov 2011 at 1:55

GoogleCodeExporter commented 9 years ago
Updated the files to utf-8 w/o BOM. 

Original comment by johansalllarsson on 14 Nov 2011 at 8:23