<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>google search (utf-8)</title> 
  <pubDate>Fri, 10 Apr 2026 15:00:33 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/1329</link> 
  <atom:link rel="self" type="application/rss+xml" title="google search (utf-8)" href="https://bugs.horde.org/ticket/1329/rss" /> 
  <description>google search (utf-8)</description> 
 
   
   
  <item> 
   <title>The google form on horde portal does&#039;nt support encoding to </title> 
   <description>The google form on horde portal does&#039;nt support encoding to utf-8. 



Here is the patch therefor:



--- open_google_win.js.orig     Sat Dec 25 00:12:52 2004

+++ open_google_win.js  Sat Dec 25 00:11:29 2004

@@ -36,9 +36,27 @@



     var name = &quot;Google&quot;;

     var param = &quot;toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes,width=800,height=600,left=0,top=0&quot;;

-    url = url + escape(document.google.q.value);

+    url = url + escape(encode_utf8(document.google.q.value));

     eval(&quot;name = window.open(url, name, param)&quot;);

     if (!eval(&quot;name.opener&quot;)) {

         eval(&quot;name.opener = self&quot;);

     }

+}

+

+function encode_utf8(q) {

+    q = q.replace(/\r\n/g,&quot;\n&quot;);

+    var qutf = &quot;&quot;;

+    for(var i=0; i&lt;q.length; i++) {

+       var c=q.charCodeAt(i);

+       if (c&lt;128)

+           qutf += String.fromCharCode(c);

+       else if((c&gt;127) &amp;&amp; (c&lt;2048)) {

+           qutf += String.fromCharCode((c&gt;&gt;6)|192);

+           qutf += String.fromCharCode((c&amp;63)|128);}

+        else {

+            qutf += String.fromCharCode((c&gt;&gt;12)|224);

+            qutf += String.fromCharCode(((c&gt;&gt;6)&amp;63)|128);

+            qutf += String.fromCharCode((c&amp;63)|128);}

+        }

+    return qutf;

 }

</description> 
   <pubDate>Tue, 08 Feb 2005 09:04:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1329#t5316</link> 
  </item> 
   
  <item> 
   <title>As I already told you (IIRC), this won&#039;t work because the en</title> 
   <description>As I already told you (IIRC), this won&#039;t work because the entered search string could be in any charset, depending on the current language and the server&#039;s capabilities. The charset conversion needs to be done on the server side instead.</description> 
   <pubDate>Tue, 08 Feb 2005 09:14:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1329#t5326</link> 
  </item> 
   
  <item> 
   <title>No feedback.</title> 
   <description>No feedback.</description> 
   <pubDate>Sun, 06 Mar 2005 12:30:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1329#t6073</link> 
  </item> 
   
  <item> 
   <title>Fixed.</title> 
   <description>Fixed.</description> 
   <pubDate>Fri, 13 May 2005 21:21:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1329#t8172</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
