fixes a bug in UTF8 handling in COinS metadata (reported by Wojtek)
This commit is contained in:
+4
-1
@@ -943,7 +943,10 @@ function latex2html($line) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** encodes strings for Z3988 URLs. Note that & are encoded as %26 and not as &. */
|
/** encodes strings for Z3988 URLs. Note that & are encoded as %26 and not as &. */
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user