Active
Project:
Bibliography Module
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2011 at 16:09 UTC
Updated:
4 Feb 2019 at 19:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rjerome commentedThe problem is the file is not in UTF-8 format.
I've attached the same file, saved inn UTF-8 format and it works fine.
Comment #2
rory_o commentedOh snap, things got all messed up when going from one export translating to another to another to another... Biblio is solving all of this though, so thank you and thank you for the fast responses!
Comment #3
pheraph commentedWould it be possible to check if the import-file is utf8 and if not show a message that helps the user to import its data instead of showing a cryptic message? This would be a helpful addition. Besides that: Biblio is an awesome module, thanks for it!
Raphael
Comment #4
rjerome commentedI'll look into that (and perhaps automatically converting the file).
Ron.
Comment #5
daggar commented#3 described my problem. PHP's utf8_encode function fixed it. Thanks Pheraph.
Comment #6
rjerome commentedutf8_encode will work fine -- assuming the file/string is not already utf8 encoded AND it's ISO-8859-1, if it is already utf8 or some other character set, then you will likely end up with garbage. The trick is determining the format of the incoming data and appropriately converting it to utf8.
There are ways to do this at both the file level and the string level, but I just haven't had time to do it yet :(
Ron.
Comment #7
liam morland