jugyo / earthquake

Twitter terminal client with streaming API support.
MIT License
661 stars 94 forks source link

UTF-8 / ASCII-8BIT issue #164

Open docent-net opened 10 years ago

docent-net commented 10 years ago

Tried to post BOM (https://en.wikipedia.org/wiki/Byte_order_mark) via Earthquake () and got:

[ERROR] incompatible character encodings: UTF-8 and ASCII-8BIT
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/commands.rb:155:in `join'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/commands.rb:155:in `block (2 levels) in <top (required)>'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/input.rb:46:in `call'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/input.rb:46:in `input'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/commands.rb:168:in `block (2 levels) in <top (required)>'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/input.rb:46:in `call'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/input.rb:46:in `input'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/core.rb:139:in `block (3 levels) in start'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/core.rb:236:in `call'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/core.rb:236:in `block in sync'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/core.rb:235:in `synchronize'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/core.rb:235:in `sync'
    /usr/local/share/gems/gems/earthquake-1.0.0/lib/earthquake/core.rb:136:in `block (2 levels) in start'

Worked via standard Twitter webclient; moreover Earthquake shows correctly entries with that BOM-string. Posting is just not possible