aquaman / clr-sessions

Command-line Ruby Session-Based Testing Framework
8 stars 3 forks source link

Scripts don't like UTF-8 characters in the session sheets #13

Open aquaman opened 10 years ago

aquaman commented 10 years ago

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.

aquaman commented 10 years ago

UTF-8 is not supported at this time.