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

REF2 export as CSV and Excel UTF-8 issue #1

Open
liamgh opened this issue May 22, 2020 · 0 comments
Open

REF2 export as CSV and Excel UTF-8 issue #1

liamgh opened this issue May 22, 2020 · 0 comments

Comments

@liamgh
Copy link

liamgh commented May 22, 2020

Hi,

I have had an issue reported where the CSV export for the REF2 report opened up in Excel, but did not correctly represent some UTF-8 characters in a title for an eprint. Confusingly, the CSV opened up in notepad looked just fine. Apparently this is a known issue in Excel and has been discussed here: https://stackoverflow.com/questions/39086988/setting-bom-to-unicode-u-code-utf8-perl

In the function output_list() in REF_CSV.pm I added this line:

print "\N{BOM}";

... just before the headers are rendered. This seemed to cure the issue with Excel 2016 at least. I thought it would be worth raising here in case you wanted to incorporate the same fix.

Thanks
Liam

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