cobaltpet / swl-tool

A ruby script for fetching, parsing, and displaying EiBi shortwave broadcast schedules
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

EiBi schedule data uses ISO-8859-1 encoding; check if terminal supports that encoding #34

Open cobaltpet opened 7 years ago

cobaltpet commented 7 years ago

If the schedule data is printed in a terminal that doesn't support ISO-8859-1, some characters will appear corrupted.

$ ./swl-tool.rb -ta -b "Radio Exterior"
swl-tool.rb version 2017-09-07 0016UTC by Eric Weatherall : cobaltpetxxxxxxxcom : http://cobaltpet.blogspot.com/
credit: Shortwave broadcast schedule data from EiBi
info: Loaded 12377 schedule entries
s: 15390 kHz : [1800 - 2200 SMTWTFS] : Radio Exterior Espa?a   : Spanish to WAf
s: 15520 kHz : [1400 - 1800 S.....S] : Radio Exterior Espa?a   : Spanish to As
s: 15520 kHz : [1800 - 2200 SMTWTFS] : Radio Exterior Espa?a   : Spanish to As
s: 17715 kHz : [1400 - 1800 S.....S] : Radio Exterior Espa?a   : Spanish to SAm
s: 17715 kHz : [1800 - 2200 SMTWTFS] : Radio Exterior Espa?a   : Spanish to SAm
s: 17855 kHz : [1400 - 1800 S.....S] : Radio Exterior Espa?a   : Spanish to NAm
s: 17855 kHz : [1800 - 2200 SMTWTFS] : Radio Exterior Espa?a   : Spanish to NAm
s: 21620 kHz : [1400 - 1800 S.....S] : Radio Exterior Espa?a   : Spanish to WAf
cobaltpet commented 7 years ago

No idea how to accomplish this.