<html><body>
<p><font size="2" face="sans-serif">Dear Adam,</font><br>
<br>
<font size="2" face="sans-serif">because Jens is out of the office for a few days, I jump in.</font><br>
<br>
<font size="2" face="sans-serif">I take one of the records that is found by the saved search and where there is a German umlaut in the creator's name (Krüger, G):</font><br>
<br>
<font size="2" face="sans-serif">bin/export zora eprint XMLforCMS2 95663</font><br>
<br>
<font size="2" face="sans-serif">just exports fine, and we obtain the expected XML:</font><br>
<br>
<font size="2" face="sans-serif">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;</font><br>
<font size="2" face="sans-serif">&lt;eprints xmlns=&quot;http://eprints.org/ep2/data/2.0&quot;&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; </font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &lt;eprint id=&quot;http://www.zora.uzh.ch/id/eprint/95663&quot;&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;eprintid&gt;95663&lt;/eprintid&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;title&gt;Krabben, Würmer, Schwein und Hund. Wie machen Tiere Geschichte?&lt;/title&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;date&gt;2014-04&lt;/date&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;year_from_date&gt;2014&lt;/year_from_date&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;creators__editors_if_edited_scientific_work&gt;Krüger, Gesine&lt;/creators__editors_if_edited_scientific_work&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;first_creator__or__first_editor_if_edited_scientific_work&gt;Krüger, Gesine&lt;/first_creator__or__first_editor_if_edited_scientific_work&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;type_in_text&gt;Book Section&lt;/type_in_text&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;citation&gt;Krüger, Gesine (2014). &amp;lt;a href=&quot;http://www.zora.uzh.ch/95663&quot; target=&quot;_blank&quot; class=&quot;uzh&quot; title=&quot;zoracitationlink 95663&quot;&amp;gt;Krabben, Würmer, Schwein und Hund. Wie machen Tiere Geschichte?&amp;lt;/a&amp;gt; In: Grumblies, Florian; Weise, Anton. Unterdrückung und Emanzipation in der Weltgeschichte. Zum Ringen um Freiheit, Kaffee und Deutungshoheit. Hannover, 26-41. ISBN 978-3-944342-47-4.&lt;/citation&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;coins&gt;url_ver=Z39.88-2004&amp;amp;rft_id=http%3A%2F%2Fwww.zora.uzh.ch%2F95663&amp;amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;amp;rft.au=Kr%C3%BCger%2C+Gesine&amp;amp;rft.aulast=Kr%C3%BCger&amp;amp;rft.aufirst=Gesine&amp;amp;rft.date=April+2014&amp;amp;rft.isbn=978-3-944342-47-4&amp;amp;rft.title=Krabben%2C+W%C3%BCrmer%2C+Schwein+und+Hund.+Wie+machen+Tiere+Geschichte%3F&amp;amp;rft.btitle=Unterdr%C3%BCckung+und+Emanzipation+in+der+Weltgeschichte.+Zum+Ringen+um+Freiheit%2C+Kaffee+und+Deutungshoheit&amp;amp;rft.genre=bookitem&amp;amp;rft.place=Hannover&lt;/coins&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; &nbsp; &lt;/eprint&gt;</font><br>
<font size="2" face="sans-serif">&nbsp; </font><br>
<font size="2" face="sans-serif">&lt;/eprints&gt;</font><br>
<br>
<br>
<font size="2" face="sans-serif">If we open the saved search with the &quot;offending&quot; umlaut (by clicking the link in the &quot;Name of search&quot; column), the search is execute and yields a result list.</font><br>
<font size="2" face="sans-serif">You can then export the results by choosing an export plugin from the drop down menu. All export plugins (including XMLforCMS2) do work this way.</font><br>
<br>
<br>
<font size="2" face="sans-serif">In the last column of the saved search table there is a special button that calls cgi/saved_search by passing savedsearch_id as parameter.</font><br>
<font size="2" face="sans-serif">This button and the saved_search cgi script (seem to) have been extended by EPrints Services for us.</font><br>
<br>
<font size="2" face="sans-serif">Jens has opened a support case with Justin to check this script - we assume that the problem is somewhere generated in the line </font><br>
<br>
<font size="2" face="Menlo-Regular">print $saved_search-&gt;make_searchexp-&gt;perform_search-&gt;export( $format );</font><br>
<br>
<font size="2" face="sans-serif">when a &quot;virtual&quot; dataset is passed to the export plugin and there is an umlaut in the originating query.</font><br>
<br>
<font size="2" face="sans-serif">This problem not only happens with the XMLforCMS2 export - it happens with any export format that is passed to the extended saved_search CGI script.</font><br>
<br>
<font size="2" face="sans-serif">Best regards,</font><br>
<br>
<font size="2" face="sans-serif">Martin</font><br>
<br>
<br>
<font size="2" face="sans-serif">--</font><br>
<font size="2" face="sans-serif">Dr. Martin Brändle</font><br>
<font size="2" face="sans-serif">Zentrale Informatik</font><br>
<font size="2" face="sans-serif">Universität Zürich</font><br>
<font size="2" face="sans-serif">Winterthurerstr. 190</font><br>
<font size="2" face="sans-serif">CH-8057 Zürich</font><br>
<br>
<font size="2" face="sans-serif">mail: martin.braendle@id.uzh.ch</font><br>
<font size="2" face="sans-serif">phone: +41 44 63 56705</font><br>
<font size="2" face="sans-serif">fax: +41 44 63 54505</font><br>
<font size="2" face="sans-serif"><a href="http://www.id.uzh.ch">http://www.id.uzh.ch</a></font><br>
<br>
<img width="16" height="16" src="cid:1__=4EBBF746DFC0382C8f9e8a93df9@lotus.uzh.ch" border="0" alt="Inactive hide details for &quot;Field A.N.&quot; ---22/01/2015 15:56:15---What happens if you export the record on the command line? --"><font size="2" color="#424282" face="sans-serif">&quot;Field A.N.&quot; ---22/01/2015 15:56:15---What happens if you export the record on the command line? --</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">Von:        </font><font size="1" face="sans-serif">&quot;Field A.N.&quot; &lt;af05v@ecs.soton.ac.uk&gt;</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">An:        </font><font size="1" face="sans-serif">eprints-tech@ecs.soton.ac.uk</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Datum:        </font><font size="1" face="sans-serif">22/01/2015 15:56</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Betreff:        </font><font size="1" face="sans-serif">[EP-tech] Re: {Disarmed} International characters in advanced        search fail for XML-Export</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Gesendet von:        </font><font size="1" face="sans-serif">eprints-tech-bounces@ecs.soton.ac.uk</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt><font size="2">What happens if you export the record on the command line?<br>
<br>
<br>
--<br>
Adam Field<br>
Business Relationship Manager and Community Lead<br>
EPrints Services<br>
<br>
<br>
<br>
<br>
On 20 Jan 2015, at 16:13, jens.vieler@id.uzh.ch wrote:<br>
<br>
&gt; Hi together,<br>
&gt; <br>
&gt; (using ePrints V3.3.12)<br>
&gt; <br>
&gt; found a strange behaviour in combination Advanced Search / Saved Search / XML-Export whithin context of international characters: If we use a saved search on a author/creator with german Umlauts (international encoding), the XML-Export-Plugin returns an empty XML-Dataset. Database entry savedsearch|spec looks like smart utf8 to us (look at the bottom of this message).<br>
&gt; <br>
&gt; Does anybody know this behaviour ...or better know how to fix it? :)<br>
&gt; <br>
&gt; Cheers<br>
&gt; &nbsp;Jens<br>
&gt; <br>
&gt; <br>
&gt; In detail:<br>
&gt; <br>
&gt; 1.) Creating an Advanced Searching for an author/creator WITHOUT German Umlauts (e.g. &quot;Vieler&quot;) <br>
&gt; <br>
&gt; - Database shows spec: <br>
&gt; <br>
&gt; ?plugin=Internal&amp;searchid=advanced&amp;dataset=archive&amp;exp=0%7C1%7C-date%2Fcreators_name%2Ftitle%7Carchive%7C-%7Ccreators_name%3Acreators_name%3AALL%3AEQ%3AVieler%7C-%7Ceprint_status%3Aeprint_status%3AANY%3AEQ%3Aarchive%7Cmetadata_visibility%3Ametadata_visibility%3AANY%3AEQ%3Ashow<br>
&gt; <br>
&gt; - Screen-View:<br>
&gt; <br>
&gt; </font></tt><tt><font size="2">http://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/id/saved_search/&lt;savedsearch_id&gt; <br>
&gt; <br>
&gt; will be redirected to <br>
&gt; <br>
&gt; MailScanner has detected a possible fraud attempt from &quot;</font></tt><tt><font size="2">www.zoratest.uzh.ch</font></tt><tt><font size="2">&quot; claiming to be </font></tt><tt><font size="2">http://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/cgi/search/archive/advanced?_action_search=1&amp;dataset=archive&amp;exp=0|1|-date%2Fcreators_name%2Ftitle|archive|-|creators_name%3Acreators_name%3AALL%3AEQ%3AVieler|-|eprint_status%3Aeprint_status%3AANY%3AEQ%3Aarchive&amp;order=-date%2Fcreators_name%2Ftitle <br>
&gt; <br>
&gt; and works!<br>
&gt; <br>
&gt; - XML-Export for our CMS:<br>
&gt; <br>
&gt; &nbsp;</font></tt><tt><font size="2">https://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/cgi/users/home?screen=Workflow%3A%3AExportSavedSearchResults&amp;dataset=saved_search&amp;dataobj=&lt;savedsearch_id&gt;<br>
&gt; <br>
&gt; will be redirected to<br>
&gt; <br>
&gt; MailScanner has detected a possible fraud attempt from &quot;</font></tt><tt><font size="2">www.zoratest.uzh.ch</font></tt><tt><font size="2">&quot; claiming to be </font></tt><tt><font size="2">https://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/cgi/saved_search/export_zora_XMLforCMS2.xml?savedsearchid=&lt;savedsearch_id&gt;&amp;_action_export=1&amp;_output=XMLforCMS2<br>
&gt; <br>
&gt; and works!<br>
&gt; <br>
&gt; <br>
&gt; 2.) Creating an Advanced Searching for an author/creator WITH German Umlauts (e.g. &quot;Krüger,G&quot;) <br>
&gt; <br>
&gt; - Database shows spec:<br>
&gt; <br>
&gt; ?plugin=Internal&amp;searchid=advanced&amp;dataset=archive&amp;exp=0%7C1%7C-date%2Fcreators_name%2Ftitle%7Carchive%7C-%7Ccreators_name%2Feditors_name%3Acreators_name%2Feditors_name%3AALL%3AEQ%3AKr%C3%BCger%2C+G%7C-%7Ceprint_status%3Aeprint_status%3AANY%3AEQ%3Aarchive%7Cmetadata_visibility%3Ametadata_visibility%3AANY%3AEQ%3Ashow<br>
&gt; <br>
&gt; (so &quot;Kr%C3%BCger&quot; looks like good old utf8 stuff to me)<br>
&gt; <br>
&gt; - Screen-View:<br>
&gt; <br>
&gt; </font></tt><tt><font size="2">http://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/id/saved_search/&lt;savedsearch_id&gt;<br>
&gt; <br>
&gt; will be redirected to <br>
&gt; <br>
&gt; MailScanner has detected a possible fraud attempt from &quot;</font></tt><tt><font size="2">www.zoratest.uzh.ch</font></tt><tt><font size="2">&quot; claiming to be </font></tt><tt><font size="2">http://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/cgi/search/archive/advanced?_action_search=1&amp;dataset=archive&amp;exp=0|1|-date%2Fcreators_name%2Ftitle|archive|-|creators_name%2Feditors_name%3Acreators_name%2Feditors_name%3AALL%3AEQ%3AKr%C3%BCger%2C+G|-|eprint_status%3Aeprint_status%3AANY%3AEQ%3Aarchive&amp;order=-date%2Fcreators_name%2Ftitle<br>
&gt; <br>
&gt; and works!<br>
&gt; <br>
&gt; - XML-Export for our CMS:<br>
&gt; <br>
&gt; </font></tt><tt><font size="2">https://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/cgi/users/home?screen=Workflow%3A%3AExportSavedSearchResults&amp;dataset=saved_search&amp;dataobj=&lt;savedsearch_id&gt;<br>
&gt; <br>
&gt; will be redirected to<br>
&gt; <br>
&gt; MailScanner has detected a possible fraud attempt from &quot;</font></tt><tt><font size="2">www.zoratest.uzh.ch</font></tt><tt><font size="2">&quot; claiming to be </font></tt><tt><font size="2">https://www</font></tt><tt><font size="2">.&lt;eprint-server&gt;.ch/cgi/saved_search/export_zora_XMLforCMS2.xml?savedsearchid=&lt;savedsearch_id&gt;&amp;_action_export=1&amp;_output=XMLforCMS2<br>
&gt; <br>
&gt; and fails... let's say: It's empty:<br>
&gt; <br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br>
&gt; &lt;eprints xmlns=&quot;</font></tt><tt><font size="2"><a href="http://eprints.org/ep2/data/2.0">http://eprints.org/ep2/data/2.0</a></font></tt><tt><font size="2">&quot;&gt;<br>
&gt; &lt;/eprints&gt;<br>
&gt; <br>
&gt; -- <br>
&gt; Jens Vieler<br>
&gt; Informatikdienste<br>
&gt; Universität Zürich<br>
&gt; Winterthurerstr. 190<br>
&gt; CH-8057 Zürich<br>
&gt; <br>
&gt; mail: &nbsp;jens.vieler@id.uzh.ch<br>
&gt; phone: +41 44 63 56777<br>
&gt; </font></tt><tt><font size="2"><a href="http://www.id.uzh.ch">http://www.id.uzh.ch</a></font></tt><tt><font size="2"><br>
&gt; <br>
&gt; *** Options: </font></tt><tt><font size="2"><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a></font></tt><tt><font size="2"><br>
&gt; *** Archive: </font></tt><tt><font size="2"><a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a></font></tt><tt><font size="2"><br>
&gt; *** EPrints community wiki: </font></tt><tt><font size="2"><a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a></font></tt><tt><font size="2"><br>
&gt; *** EPrints developers Forum: </font></tt><tt><font size="2"><a href="http://forum.eprints.org/">http://forum.eprints.org/</a></font></tt><tt><font size="2"><br>
<br>
<br>
*** Options: </font></tt><tt><font size="2"><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a></font></tt><tt><font size="2"><br>
*** Archive: </font></tt><tt><font size="2"><a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a></font></tt><tt><font size="2"><br>
*** EPrints community wiki: </font></tt><tt><font size="2"><a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a></font></tt><tt><font size="2"><br>
*** EPrints developers Forum: </font></tt><tt><font size="2"><a href="http://forum.eprints.org/">http://forum.eprints.org/</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>