You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ruby script gives this error when trying to convert the data. I'm using ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
converter.rb:24:in `strip!': invalid byte sequence in UTF-8 (Encoding::CompatibilityError)
from converter.rb:24:in `stripAndEncode'
from converter.rb:40:in `block (2 levels) in <main>'
from converter.rb:38:in `open'
from converter.rb:38:in `block in <main>'
from converter.rb:27:in `each'
from converter.rb:27:in `<main>'
So rather than try to get the ruby script to work I made a Python script which does effectively the same thing, so I thought I'd share it for anyone coming across the same issue.
Hey man, thanks a ton! I'm doing a fun personal project with the trivia questions in C#, so glad this code worked! The only thing that I had to add was import os, that's when the code ran. Thanks again.
Ruby script gives this error when trying to convert the data. I'm using ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
So rather than try to get the ruby script to work I made a Python script which does effectively the same thing, so I thought I'd share it for anyone coming across the same issue.
The text was updated successfully, but these errors were encountered: