{"id":51,"date":"2009-02-05T15:46:31","date_gmt":"2009-02-05T15:46:31","guid":{"rendered":"http:\/\/jurnsearch.wordpress.com\/?p=51"},"modified":"2009-02-05T15:46:31","modified_gmt":"2009-02-05T15:46:31","slug":"jurn-and-diacritics","status":"publish","type":"post","link":"https:\/\/jurn.link\/jurnsearch\/index.php\/2009\/02\/05\/jurn-and-diacritics\/","title":{"rendered":"JURN and diacritics\/Chinese\/Japanese"},"content":{"rendered":"<p>I&#8217;m trying to fix a problem with JURN returning <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jurn.link\/jurnsearch\/2009\/02\/code1.jpg\" alt=\"code1\" title=\"code1\" width=\"134\" height=\"17\" class=\"alignnone size-full wp-image-54\" \/> into the search box after a search, when it should show <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jurn.link\/jurnsearch\/2009\/02\/character.jpg\" alt=\"character\" title=\"character\" width=\"28\" height=\"18\" class=\"alignnone size-full wp-image-50\" \/>.  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jurn.link\/jurnsearch\/2009\/02\/code1.jpg\" alt=\"code1\" title=\"code1\" width=\"134\" height=\"17\" class=\"alignnone size-full wp-image-54\" \/> being the &#8220;raw&#8221; HTML codes for those Chinese characters.<\/p>\n<p>Tweaking the supplied code snippet from UTF-8 to iso-8859-1 seems to cure it.  But then that results in <strong>nothing<\/strong> being returned to the search box at all, even for English queries. Which is obviously a non-starter, since I&#8217;m not going to cripple JURN in English.<\/p>\n<p>It seems the bug results from a combination of Google&#8217;s remote &#8220;show_afs_search.js&#8221; javascript file (which I can&#8217;t change), and my showing the results on the same page as the search box (i.e.: the &#8220;iframe hosting option&#8221;).  The language encoding for the search terms is getting stripped out, somewhere in the loop back to the search-box. <\/p>\n<p>Other people&#8217;s Custom Search Engines seem to handle the problem, but only by displaying the results on a new second page.  I may have to look into having a second interface for non-English users, showing the results on a second page, when JURN makes the move to its own domain. Or you can just use <a href=\"http:\/\/www.google.com\/coop\/cse?cx=017986067167581999535:rnewgrysmpe&amp;hl=en\">the &#8220;raw&#8221; Google page<\/a> for JURN.<\/p>\n<p>Unless someone can offer a solution?  But I&#8217;ve searched the support forums with no result. It seems it may well be a genuine bug with the &#8220;iframe hosting option&#8221;. The same bug also causes JURN to refuse non-English accents (i.e.: diacritics) on search terms.  So &#8220;pate&#8221; will work and will find &#8220;pate&#8221; and &#8220;p&acirc;t&eacute;&#8221;, &mdash; but &#8220;p&acirc;t&eacute;&#8221; on its own won&#8217;t be accepted as a valid search term.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to fix a problem with JURN returning into the search box after a search, when it should show &hellip;<\/p>\n<p><a href=\"https:\/\/jurn.link\/jurnsearch\/index.php\/2009\/02\/05\/jurn-and-diacritics\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7,10],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-academic-search","category-jurn-metrics","category-my-general-observations"],"_links":{"self":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":0,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}