<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>utf-8 error on attendee's addressbook search</title>
  <pubDate>Fri, 08 Aug 2008 14:58:12 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6457</link>
  <atom:link rel="self" type="application/rss+xml" title="utf-8 error on attendee's addressbook search" href="http://bugs.horde.org/ticket/6457/rss" />
  <description>utf-8 error on attendee's addressbook search</description>

  
  
  <item>
   <title>I wonder if somebody could help me...

I have a contact na</title>
   <description>I wonder if somebody could help me...

I have a contact named &quot;Árvízt&amp;#369;r&amp;#337; Tükörfúrógép&quot;.

Everywhere looks ok but if I make a new event and I assign attendees to it.
The addressbook autoexpand looks bad.

My contact info: contact.png
If I make a new e-mail it's OK: new_mail_ok.png
Attendee expand wrong: attendee_wrong.png
Attendee wrong: attendee2_wrong.png</description>
   <pubDate>Mon, 17 Mar 2008 10:15:43 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t43879</link>
  </item>
  <item>
   <title>&gt; If I make a new e-mail it's OK: new_mail_ok.png
</title>
   <description>&gt; If I make a new e-mail it's OK: new_mail_ok.png
</description>
   <pubDate>Mon, 17 Mar 2008 10:16:48 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t43880</link>
  </item>
  <item>
   <title>&gt; Attendee expand wrong: attendee_wrong.png
</title>
   <description>&gt; Attendee expand wrong: attendee_wrong.png
</description>
   <pubDate>Mon, 17 Mar 2008 10:17:24 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t43881</link>
  </item>
  <item>
   <title>&gt; Attendee wrong: attendee2_wrong.png
</title>
   <description>&gt; Attendee wrong: attendee2_wrong.png
</description>
   <pubDate>Mon, 17 Mar 2008 10:18:11 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t43882</link>
  </item>
  <item>
   <title>Works fine here</title>
   <description>Works fine here</description>
   <pubDate>Mon, 17 Mar 2008 10:47:39 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t43888</link>
  </item>
  <item>
   <title>&gt; Works fine here
I don't know if it matters, I have pgsql </title>
   <description>&gt; Works fine here
I don't know if it matters, I have pgsql database backend.

How can I trace the problem back?</description>
   <pubDate>Mon, 17 Mar 2008 11:13:52 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t43894</link>
  </item>
  <item>
   <title>If you know your way around charsets, you should start in kr</title>
   <description>If you know your way around charsets, you should start in kronolith/imple.php where the conversion happens from the turba api to json (javascript) code.</description>
   <pubDate>Mon, 17 Mar 2008 13:18:54 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t43899</link>
  </item>
  <item>
   <title>Sorry I have not much time these days... :(

I found some </title>
   <description>Sorry I have not much time these days... :(

I found some interesting line but it seems to have no effect to my problem.

In kronolith's imle.php I found the line:
  echo KRONOLITH_Serialize_JSON::encode(String::convertCharset($result, NLS::getCharset(), 'utf-8'));

(String::convertCharset($result, NLS::getCharset(), 'utf-8' --&gt;)&lt;-- );

And in IMP's compose.php:

$js_code[] = 'var identities = ' . IMP_Serialize_JSON::encode(String::convertCharset($js_ident, NLS::getCharset()), 'utf-8');

(String::convertCharset($js_ident, NLS::getCharset()  --&gt;)&lt;--  , 'utf-8');

In kronolith's code, the 'utf-8' is the argument of String::convertCharset but not in IMP's code...

Anyway change it in kronolith doesn't do the trick :(


</description>
   <pubDate>Thu, 20 Mar 2008 06:03:03 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44033</link>
  </item>
  <item>
   <title>My SQL settings are:

$conf['sql']['persistent'] = true;
</title>
   <description>My SQL settings are:

$conf['sql']['persistent'] = true;
$conf['sql']['username'] = 'xxxxxxx';
$conf['sql']['password'] = '**********';
$conf['sql']['hostspec'] = 'localhost';
$conf['sql']['port'] = 0;
$conf['sql']['protocol'] = 'tcp';
$conf['sql']['database'] = 'hordewebmail2';
$conf['sql']['charset'] = 'utf-8';
$conf['sql']['phptype'] = 'pgsql';
</description>
   <pubDate>Thu, 20 Mar 2008 06:06:37 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44034</link>
  </item>
  <item>
   <title>&gt; And in IMP's compose.php:
&gt;
&gt; $js_code[] = 'var identiti</title>
   <description>&gt; And in IMP's compose.php:
&gt;
&gt; $js_code[] = 'var identities = ' . 
&gt; IMP_Serialize_JSON::encode(String::convertCharset($js_ident, 
&gt; NLS::getCharset()), 'utf-8');

Nice catch. It was actually the line in IMP that was wrong.</description>
   <pubDate>Thu, 20 Mar 2008 08:11:21 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44043</link>
  </item>
  <item>
   <title>Do you have the json PHP extension installed by chance? We s</title>
   <description>Do you have the json PHP extension installed by chance? We seem to use it in IMP if it's available, but not in Kronolith. This could make the difference.</description>
   <pubDate>Thu, 20 Mar 2008 08:12:40 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44045</link>
  </item>
  <item>
   <title>&gt; Do you have the json PHP extension installed by chance? We</title>
   <description>&gt; Do you have the json PHP extension installed by chance? We seem to 
&gt; use it in IMP if it's available, but not in Kronolith. This could 
&gt; make the difference.

I use this extension:

dpkg -s php5-json
Package: php5-json
Status: install ok installed
Installed-Size: 60
Maintainer: Pierre Habouzit &lt;madcoder@debian.org&gt;
Architecture: i386
Source: php-json-ext
Version: 1.2.1-3.2

extension=json.so
</description>
   <pubDate>Thu, 20 Mar 2008 10:49:26 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44069</link>
  </item>
  <item>
   <title>Which PHP version do you use? See also bug 6457 which might </title>
   <description>Which PHP version do you use? See also bug 6457 which might be another symptom of the same root problem.</description>
   <pubDate>Fri, 04 Apr 2008 08:29:53 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44398</link>
  </item>
  <item>
   <title>&gt; Which PHP version do you use? See also bug 6457 which migh</title>
   <description>&gt; Which PHP version do you use? See also bug 6457 which might be 
&gt; another symptom of the same root problem.
Package: php5
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 20
Maintainer: Debian PHP Maintainers &lt;pkg-php-maint@lists.alioth.debian.org&gt;
Architecture: all
Version: 5.2.0-8+etch10
</description>
   <pubDate>Mon, 07 Apr 2008 02:58:32 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44467</link>
  </item>
  <item>
   <title>&gt; See also bug 6457 which might be 
&gt; another symptom of th</title>
   <description>&gt; See also bug 6457 which might be 
&gt; another symptom of the same root problem.
This is the bug #6457... :)</description>
   <pubDate>Mon, 07 Apr 2008 03:02:00 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44468</link>
  </item>
  <item>
   <title>&gt; This is the bug #6457... :)

Eh, bug 5955. :)</title>
   <description>&gt; This is the bug #6457... :)

Eh, bug 5955. :)</description>
   <pubDate>Mon, 07 Apr 2008 06:16:58 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44472</link>
  </item>
  <item>
   <title>&gt; Eh, bug 5955. :)
I have no problem with Subject's in DIMP</title>
   <description>&gt; Eh, bug 5955. :)
I have no problem with Subject's in DIMP :-o Everything is fine.</description>
   <pubDate>Tue, 08 Apr 2008 12:44:02 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44499</link>
  </item>
  <item>
   <title>It's a symptom of the same PHP problem, not the same Horde p</title>
   <description>It's a symptom of the same PHP problem, not the same Horde problem. Address search uses JSON; you probably need a newer PHP json module.</description>
   <pubDate>Wed, 23 Apr 2008 18:01:17 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44834</link>
  </item>
  <item>
   <title>&gt; It's a symptom of the same PHP problem, not the same Horde</title>
   <description>&gt; It's a symptom of the same PHP problem, not the same Horde problem. 
&gt; Address search uses JSON; you probably need a newer PHP json module.

But why is it working elsewhere on my system? Look at new_mail_ok.png

Or only kronolith use json for address expansion/search and IMP not?</description>
   <pubDate>Thu, 24 Apr 2008 07:18:50 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44875</link>
  </item>
  <item>
   <title>The other way around.</title>
   <description>The other way around.</description>
   <pubDate>Thu, 24 Apr 2008 23:39:19 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44910</link>
  </item>
  <item>
   <title>This will fix it:
http://lists.horde.org/archives/cvs/Week-</title>
   <description>This will fix it:
http://lists.horde.org/archives/cvs/Week-of-Mon-20080421/077735.html</description>
   <pubDate>Thu, 24 Apr 2008 23:52:37 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44911</link>
  </item>
  <item>
   <title>&gt; This will fix it:
&gt; http://lists.horde.org/archives/cvs/W</title>
   <description>&gt; This will fix it:
&gt; http://lists.horde.org/archives/cvs/Week-of-Mon-20080421/077735.html

It doesn't work for me :(

I downloaded the &quot;http://cvs.horde.org/co.php?r=1.1.2.2&amp;p=1&amp;f=kronolith%2Flib%2FJSON.php&quot; and replaced the JSON.php in /kronolith/lib but the result is the same as previous.

I deleted my browser's cache restarted the apache deleted the horde cache files... :(</description>
   <pubDate>Fri, 25 Apr 2008 02:54:36 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44917</link>
  </item>
  <item>
   <title>Well, that makes it exactly the same as the IMP code, so, we</title>
   <description>Well, that makes it exactly the same as the IMP code, so, we need more information from you on why it doesn't work on your system.</description>
   <pubDate>Fri, 25 Apr 2008 03:00:21 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44920</link>
  </item>
  <item>
   <title>&gt; Well, that makes it exactly the same as the IMP code, so, </title>
   <description>&gt; Well, that makes it exactly the same as the IMP code, so, we need 
&gt; more information from you on why it doesn't work on your system.

Who can I help?

Who could I make the problem more verbose? Could you send me a code with more logging? What shall I do?</description>
   <pubDate>Fri, 25 Apr 2008 03:11:57 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6457#t44922</link>
  </item>
  

 </channel>
</rss>
