Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid UTF-8 byte sequence #1

Closed
DaKaZ opened this issue May 22, 2014 · 8 comments
Closed

Invalid UTF-8 byte sequence #1

DaKaZ opened this issue May 22, 2014 · 8 comments

Comments

@DaKaZ
Copy link

DaKaZ commented May 22, 2014

When trying to use this gem, I am getting this when trying to pre-compile assets:

Sprockets::EncodingError: /mnt/useek-staging/shared/bundle/ruby/1.9.1/gems/jquery-countdown-rails-2.0.0/vendor/assets/javascripts/jquery.countdown-bn.js has a invalid UTF-8 byte sequence

@mauriciopasquier
Copy link
Owner

Try if opening that file and saving it as UTF-8 fixes it

@DaKaZ
Copy link
Author

DaKaZ commented May 22, 2014

My initial attempt at this failed: DaKaZ@1526292

I still get the same error. I opened the file in rubymine, converted it to UTF-8 and then saved and committed it. I am going to try to figure out specifically which character is problematic.

@DaKaZ
Copy link
Author

DaKaZ commented May 22, 2014

Okay, this one fixes it:

DaKaZ@0faa299

Look for a pull request

@DaKaZ DaKaZ closed this as completed May 22, 2014
@mauriciopasquier
Copy link
Owner

Well, actually I was going to ask you to send the PR to the people behind countdown. I'm just packing it as it comes from them.

@mauriciopasquier
Copy link
Owner

Plus, they seem to have a big problem with encodings:

$ file jquery.*

jquery.countdown-ar.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-bg.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-bn.js:    Little-endian UTF-16 Unicode text, with CRLF line terminators
jquery.countdown-bs.js:    ASCII text
jquery.countdown-ca.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-cs.js:    UTF-8 Unicode text
jquery.countdown-cy.js:    UTF-8 Unicode (with BOM) text, with CR line terminators
jquery.countdown-da.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-de.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-el.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-es.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-et.js:    UTF-8 Unicode text
jquery.countdown-fa.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-fi.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-fr.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-gl.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-gu.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-he.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-hr.js:    ASCII text
jquery.countdown-hu.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-hy.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-id.js:    ASCII text
jquery.countdown-it.js:    ASCII text
jquery.countdown-ja.js:    UTF-8 Unicode (with BOM) text
jquery.countdown.js:       ASCII text
jquery.countdown-kn.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-ko.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-lt.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-lv.js:    UTF-8 Unicode text
jquery.countdown-ml.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-ms.js:    ASCII text
jquery.countdown-my.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-nb.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-nl.js:    ASCII text
jquery.countdown-pl.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-pt-BR.js: ISO-8859 text
jquery.countdown-ro.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-ru.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-sk.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-sl.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-sq.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-sr.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-sr-SR.js: UTF-8 Unicode (with BOM) text
jquery.countdown-sv.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-th.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-tr.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-uk.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-ur.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-uz.js:    UTF-8 Unicode (with BOM) text
jquery.countdown-vi.js:    UTF-8 Unicode text
jquery.countdown-zh-CN.js: UTF-8 Unicode (with BOM) text
jquery.countdown-zh-TW.js: UTF-8 Unicode (with BOM) text
jquery.plugin.js:          ASCII text

@DaKaZ
Copy link
Author

DaKaZ commented May 22, 2014

Sure, I'll reach out to them

@DaKaZ
Copy link
Author

DaKaZ commented May 22, 2014

I have submitted an issue there:

kbwood/countdown#44

@mauriciopasquier
Copy link
Owner

On Thu, May 22, 2014 at 10:19:35AM -0700, DaKaZ wrote:

I have submitted an issue there:

kbwood/countdown#44

awesome, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants