Skip to content

incompatible character encodings: UTF-8 and UTF-16BE bug #45

@yinyangxu

Description

@yinyangxu

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions