Ruby 2.0 Error #829

Closed
keith opened this Issue Mar 1, 2013 · 5 comments

Comments

Projects
None yet
3 participants
Member

keith commented Mar 1, 2013

Seems like this pops up occasionally when searching for podspecs:

└ % pod search TBXML


-> TBXML (1.5)
/Users/ksmiley/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/cocoapods-0.16.4/lib/cocoapods/command/error_report.rb:13:in `report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
    from /Users/ksmiley/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/cocoapods-0.16.4/lib/cocoapods/command.rb:87:in `rescue in run'
    from /Users/ksmiley/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/cocoapods-0.16.4/lib/cocoapods/command.rb:71:in `run'
    from /Users/ksmiley/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/cocoapods-0.16.4/bin/pod:16:in `<top (required)>'
    from /Users/ksmiley/.rbenv/versions/2.0.0-p0/bin/pod:23:in `load'
    from /Users/ksmiley/.rbenv/versions/2.0.0-p0/bin/pod:23:in `<main>'
Owner

fabiopelosin commented Mar 2, 2013

I've never experienced it. I've never used Ruby 2.0 with CocoaPods 0.16 and I can't reproduce it on 0.17. Not sure if the issues is solved or just doesn't appear with my setup.

Member

keith commented Mar 2, 2013

No worries 😄

Owner

fabiopelosin commented Apr 5, 2013

This error is usually related to an improperly configured environment. Setting the LANG=en_US.UTF-8 flag should solve the issue.

I have the same issue, i have tried LANG=en_US.UTF-8 and LANG=sv_SE.UTF-8

The problem was the use of incorrect quotes around the iOS version. Make sure all your quotes are ' and not ‘ or ’.

qpwang referenced this issue in easemob/sdk-ios-cocoapods Dec 25, 2014

Merged

fix: 版本号的引号错误 #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment