spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
814 stars 257 forks source link

UTF-8 errors #118

Closed sgentile closed 11 years ago

sgentile commented 11 years ago

We've been getting this error with spell checker:

Uncaught Error: Sprockets::EncodingError: C:/jruby-1.7.4/lib/ruby/gems/shared/gems/tinymce-rails-3.5.9.pre/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin.js has a invalid UTF-8 byte sequence :3026/assets/tinymce/plugins/spellchecker/editor_plugin.js?3.5.9.pre:1

The fix seems to be to save the file as utf-8, but this is a file in the gem ?

sgentile commented 11 years ago

Just as a side note to this: I thought perhaps it was because we didn't run precompile - however, when I run precompile, I get the same type of error:

c:/jruby-1.7.4/bin/jruby.exe c:\jruby-1.7.4\bin\rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets rake aborted! c:/jruby-1.7.4/lib/ruby/gems/shared/gems/tinymce-rails-3.5.9.pre/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin.js has a invalid UTF-8 byt e sequence

spohlenz commented 11 years ago

Fixed in the repo and released 3.5.9.pre2 gem. Thanks for reporting -- I skipped a step in the build process. :crying_cat_face: