fixes a bug in UTF8 handling in COinS metadata (reported by Wojtek)

This commit is contained in:
Martin Monperrus
2014-09-18 21:05:16 +02:00
parent c0181d2593
commit 71c56c3e6e
+4 -1
View File
@@ -943,7 +943,10 @@ function latex2html($line) {
} }
/** encodes strings for Z3988 URLs. Note that & are encoded as %26 and not as &amp. */ /** encodes strings for Z3988 URLs. Note that & are encoded as %26 and not as &amp. */
function s3988($s) {return urlencode(utf8_encode($s));} function s3988($s) {
// first remove the HTML entities (e.g. é) then urlencode them
return urlencode(html_entity_decode($s, ENT_NOQUOTES, ENCODING));
}
/** /**
see BibEntry->formatAuthor($author) see BibEntry->formatAuthor($author)