ugh. of course. I suppose you could add the test for CrossRef? Just export
JSON from Zotero?


On Tue, Mar 11, 2014 at 10:21 PM, Aurimas Vinckevicius <
notifications@github.com> wrote:

> In CrossRef.js:
>
> > @@ -283,6 +283,16 @@ function processCrossRef(xmlOutput) {
> >  	}
> >  	//Zotero.debug(JSON.stringify(item, null, 4));
> >  	
> > +	//check if there are potential issues with character encoding and try to fix it
> > +	//e.g. 10.1057/9780230391116.0016 (en dash in title is presented as <control><control>â)
> > +	for(var field in item) {
> > +		if(typeof item[field] != 'string') continue;
> > +		//check for control characters that should never be in strings from CrossRef
> > +		if(/[\u007F-\u009F]/.test(item[field])) {
> > +			item[field] = decodeURIComponent(escape(item[field]));
>
> I'll have to find a test that would be compatible with the DOI translator.
> This is a bookSection and DOI pretends like everything is a journalArticle,
> so detectWeb doesn't match results of doWeb.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/zotero/translators/pull/694/files#r10505160>
> .
>



-- 
Sebastian Karcher
Ph.D. Candidate
Department of Political Science
Northwestern University