I scanned a session sheet that had a UTF-8 character in it and received the following ruby error message:
bin/scan2.rb:190:in `parse_file': invalid byte sequence in UTF-8 (ArgumentError)
from bin/scan2.rb:1081:in `block in <main>'
from bin/scan2.rb:1061:in `each'
from bin/scan2.rb:1061:in `<main>'
The error indicates that the string is read in ASCII format (by default) from the file but it contains a UTF-8 character, which the ruby functions don't seem to like. i.e. ruby wants you to be consistent with the encoding.
Work-around: I opened the session sheet in a text editor, found the character and replaced it with an (extended) ASCII equivalent. When I rescanned the sheet, everything worked as expected.
I scanned a session sheet that had a UTF-8 character in it and received the following ruby error message:
The error indicates that the string is read in ASCII format (by default) from the file but it contains a UTF-8 character, which the ruby functions don't seem to like. i.e. ruby wants you to be consistent with the encoding.
Work-around: I opened the session sheet in a text editor, found the character and replaced it with an (extended) ASCII equivalent. When I rescanned the sheet, everything worked as expected.