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

Character range encodin issues for ruby > 1.8.7 #21

Open
interventure opened this issue Oct 11, 2012 · 1 comment
Open

Character range encodin issues for ruby > 1.8.7 #21

interventure opened this issue Oct 11, 2012 · 1 comment

Comments

@interventure
Copy link

HI,

in one of the our projects we use Writeexcel and I think is great.
One problem what we found so far is encoding issues with some of the characters
« » ² ³ µ ¶
We think because they belongs to totally different characters range..Please take a look:
https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts#Superscripts_and_subscripts_block
When we generate excel file, the characters either missing or we got ??????...

In all our files we have ruby encoding flag:
# coding: UTF-8

Any help or idea how we can fix this it would be great...

Regards,
Aleksandar

@MSeal
Copy link

MSeal commented Dec 19, 2014

If you're loading in ruby, try .force_encoding(Encoding::UTF_16LE).encode(Encoding::UTF_8) on the cell content... I recently ran into this as well (opening another issue on the topic).

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

2 participants