<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Hello all!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I have encountered a weird UTF-8 related problem when querying names in the advanced search.&nbsp; If the name of an author contains Å, like Ångström, (UTF-8 %c3%85, A with a ring above)
 then querying will fail.&nbsp; I have not seen the problem for any other character, e.g. no problem with &#8221;å&#8221; (a with ring above), %c3%a5, or any other non A-Z letter such as ä,Ä,ö, or Ö.&nbsp; The problem is when the database entry itself contains an Å, which is typically
 when the character is the first in the name like Ångström or in a hyphened name like Per-Åke.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Furthermore, if the queryterm contains an &#8220;Å&#8221; then it will fail.&nbsp; A few examples:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Mårten &#8211; works<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">mårten &#8211; works<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">MåRTEN -- works<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">MÅRTEN -- fails<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">mÅrten -- fails<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">The query field is (normally) case insensitive so it shouldn&#8217;t matter if I write &#8220;ångström&#8221; or &#8220;Ångström&#8221;.&nbsp; However, hit or miss in this case depends on if the database have an
 Å and/or the query term contains an Å as it seems like Eprints cannot handle &#8220;Å&#8221;.&nbsp; Always, displays correct and is correctly written into the database.&nbsp; Only problem is the advanced search.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Should add that querying the database using SQL works without any problems (incl all upper/lower combinations).&nbsp; Any ideas what may be wrong with Eprints and where to start looking?&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Christer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="mso-fareast-language:SV">Christer Enkvist, Ph D<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:SV">System Administrator/System Librarian<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:SV">Division of Scholarly Communication
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:SV">Swedish University of Agricultural Sciences<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:SV">Uppsala, Sweden<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:SV"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:SV">Telephone: 018-671042<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>