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

Fix UTF8 encoding error #45

Closed
wants to merge 1 commit into from
Closed

Conversation

samboylett
Copy link

`concat': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)

`concat': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
@samboylett
Copy link
Author

Full trace:

(erb):18:in concat': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError) from (erb):18:inblock in formatted_source_file'
from (erb):14:in each' from (erb):14:ineach_with_index'
from (erb):14:in formatted_source_file' from /Users/samboylett/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/erb.rb:849:ineval'
from /Users/samboylett/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/erb.rb:849:in result' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:56:informatted_source_file'
from (erb):36:in block (2 levels) in format' from (erb):35:ineach'
from (erb):35:in block in format' from /Users/samboylett/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/erb.rb:849:ineval'
from /Users/samboylett/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/erb.rb:849:in result' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:23:inblock in format'
from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:22:in open' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:22:informat'
from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-0.11.2/lib/simplecov/result.rb:47:in format!' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-0.11.2/lib/simplecov/configuration.rb:172:inblock in at_exit'
from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-0.11.2/lib/simplecov/defaults.rb:67:in call' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/simplecov-0.11.2/lib/simplecov/defaults.rb:67:inblock in <top (required)>'
from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/spring-1.3.6/lib/spring/application.rb:156:in fork' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/spring-1.3.6/lib/spring/application.rb:156:inserve'
from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/spring-1.3.6/lib/spring/application.rb:131:in block in run' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/spring-1.3.6/lib/spring/application.rb:125:inloop'
from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/spring-1.3.6/lib/spring/application.rb:125:in run' from /Users/samboylett/.rvm/gems/ruby-2.0.0-p643/gems/spring-1.3.6/lib/spring/application/boot.rb:18:in<top (required)>'
from /Users/samboylett/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require' from /Users/samboylett/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from -e:1:in `

'

@bf4
Copy link
Collaborator

bf4 commented Nov 22, 2016

Thanks. we could also read the file in binary

@PragTob PragTob mentioned this pull request Feb 6, 2020
@PragTob
Copy link
Collaborator

PragTob commented Feb 8, 2020

Doe in #86

@PragTob PragTob closed this Feb 8, 2020
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

Successfully merging this pull request may close these issues.

3 participants