This line will cause incompatible character encodings error if '#{name}' is #Encoding:UTF-16BE.
https://github.com/cxn03651/writeexcel/blob/master/lib/writeexcel/workbook.rb#L983
I change the encoding to solve the problem.
raise "Worksheet name '#{name.encode('UTF-8')}', with case ignored, is already in use"
This line will cause incompatible character encodings error if '#{name}' is #Encoding:UTF-16BE.
https://github.com/cxn03651/writeexcel/blob/master/lib/writeexcel/workbook.rb#L983
I change the encoding to solve the problem.
raise "Worksheet name '#{name.encode('UTF-8')}', with case ignored, is already in use"