Utf8 data import/export problems

abautu - November 3, 2007 - 22:43
Project:Bibliography Module
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
When using romanian special letters in biblio abstracts I've noticed they do not get exported ok and they break the import process. I've traced the problem to the following issues:
- endnote7_export.inc -> near the end, htmlentities is used on the abstract data; htmlspecialchars should be use instead. I also believe that this processing should be done on all the other fields because they might contain special HTML characters, too.
- biblio.module -> at the end of functions _endnote_tagged_export and _bibtex_export, utf8_decode is used to produce ISO-8859-1 content; I believe (I'm 90% sure) that bibtex and endnote can handle Unicode. So, utf8_decode should be removed "; charset=utf-8" should be append to the Content-type header.
Best wishes,
Andrei

 
 

Drupal is a registered trademark of Dries Buytaert.