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

Iconv::InvalidEncoding (invalid encoding ("UTF-16LE//TRANSLIT//IGNORE", "UTF-8")) #44

Closed
fred-meng opened this issue May 13, 2013 · 3 comments

Comments

@fred-meng
Copy link

ruby : 1.8.7
spreadsheet: 0.8.5
platform: windows 7
installer: bitnami-redmine-2.0.3-1-windows-installer-r01.exe

I have installed xls_export plugin for redmine, but every time I try exporting an Excel sheet of Issue list, I get the following error:

Iconv::InvalidEncoding (invalid encoding ("UTF-16LE//TRANSLIT//IGNORE", "UTF-8")):
spreadsheet (0.8.5) lib/spreadsheet/encodings.rb:38:in initialize' spreadsheet (0.8.5) lib/spreadsheet/encodings.rb:38:innew'
spreadsheet (0.8.5) lib/spreadsheet/encodings.rb:38:in internal' spreadsheet (0.8.5) lib/spreadsheet/excel/writer/biff8.rb:43:in_unicode_string'
spreadsheet (0.8.5) lib/spreadsheet/excel/writer/biff8.rb:36:in unicode_string' spreadsheet (0.8.5) lib/spreadsheet/excel/writer/workbook.rb:353:inwrite_font'
spreadsheet (0.8.5) lib/spreadsheet/excel/writer/workbook.rb:362:in write_fonts' spreadsheet (0.8.5) lib/spreadsheet/excel/writer/workbook.rb:359:ineach'
spreadsheet (0.8.5) lib/spreadsheet/excel/writer/workbook.rb:359:in write_fonts' spreadsheet (0.8.5) lib/spreadsheet/excel/writer/workbook.rb:429:inwrite_from_scratch'
spreadsheet (0.8.5) lib/spreadsheet/excel/writer/workbook.rb:644:in write_workbook' spreadsheet (0.8.5) lib/spreadsheet/writer.rb:12:inwrite'
spreadsheet (0.8.5) lib/spreadsheet/workbook.rb:124:in write' plugins/redmine_xls_export/lib/xls_export.rb:275:inissues_to_xls2'
plugins/redmine_xls_export/app/controllers/xls_export_controller.rb:116:in export_to_string' plugins/redmine_xls_export/app/controllers/xls_export_controller.rb:50:inexport_current'

@zdavatz
Copy link
Owner

zdavatz commented May 13, 2013

Ok, please supply me with a gist.github.com (sample file and a testscript) so I can test on my Linux. What OS do you use? The testscript has to be independent of any other third-party Software.

@fred-meng
Copy link
Author

This issue occurred Windows 7 only. The plugin works well on CentOS 6.0 with ruby 1.9.3 and redmine 2.0.3.

@zdavatz
Copy link
Owner

zdavatz commented May 13, 2013

Ok, then this may be an Windows-Only issue.

@zdavatz zdavatz closed this as completed Dec 3, 2013
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