Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yinyangxu opened this issue Jul 28, 2015 · 0 comments
Open

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

yinyangxu opened this issue Jul 28, 2015 · 0 comments

Comments

@yinyangxu
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant