Browse Source

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

pull/23/merge
Martin Monperrus 11 years ago
parent
commit
71c56c3e6e
  1. 5
      bibtexbrowser.php

5
bibtexbrowser.php

@ -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)

Loading…
Cancel
Save