<?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>Invalid UTF-8 sequence in argument ... /usr/share/php/Horde/Prefs/Scope.php</title> 
  <pubDate>Thu, 09 Apr 2026 17:31:28 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10497</link> 
  <atom:link rel="self" type="application/rss+xml" title="Invalid UTF-8 sequence in argument ... /usr/share/php/Horde/Prefs/Scope.php" href="https://bugs.horde.org/ticket/10497/rss" /> 
  <description>Invalid UTF-8 sequence in argument ... /usr/share/php/Horde/Prefs/Scope.php</description> 
 
   
   
  <item> 
   <title>Hello!

I wonder if somebody could help me.

I got in de</title> 
   <description>Hello!

I wonder if somebody could help me.

I got in debugging log that after I try to import my own ssl email certificate:


        4=\\012-----END CERTIFICATE-----&#039;) [pid 21062 on line 801 of &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]
2011-09-10T00:52:47+02:00 WARN: HORDE [imp] PHP ERROR: json_encode() [&lt;a href=&#039;function.json-encode&#039;&gt;function.json-encode&lt;/a&gt;]: Invalid UTF-8 sequence in argument [pid 21062 on line 289 of &quot;/usr/share/php/Horde/Prefs/Scope.php&quot;]
2011-09-10T00:52:47+02:00 DEBUG: HORDE 1. Horde_Prefs-&gt;store()
2. Horde_Core_Prefs_Cache_Session-&gt;store() /usr/share/php/Horde/Prefs.php:396
3. Horde_Session-&gt;set() /usr/share/php/Horde/Core/Prefs/Cache/Session.php:34
4. serialize() /usr/share/php/Horde/Session.php:334
5. Horde_Prefs_Scope-&gt;serialize()
6. json_encode() /usr/share/php/Horde/Prefs/Scope.php:289
7. Horde::errorHandler()
</description> 
   <pubDate>Fri, 09 Sep 2011 23:14:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67399</link> 
  </item> 
   
  <item> 
   <title>Could be related: http://bugs.horde.org/ticket/9472</title> 
   <description>Could be related: http://bugs.horde.org/ticket/9472</description> 
   <pubDate>Sun, 11 Sep 2011 19:51:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67422</link> 
  </item> 
   
  <item> 
   <title>&gt;         4=\\012-----END CERTIFICATE-----&#039;) [pid 21062 on l</title> 
   <description>&gt;         4=\\012-----END CERTIFICATE-----&#039;) [pid 21062 on line 801 of 
&gt; &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]

Did you upgrade from a previous version of Horde?  At first glance it looks like you did not properly upgrade your SQL backend charset.  But I&#039;m not the DB expert.</description> 
   <pubDate>Mon, 12 Sep 2011 00:10:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67428</link> 
  </item> 
   
  <item> 
   <title>Yes i upgraded it from previous version. I have now the DB (</title> 
   <description>Yes i upgraded it from previous version. I have now the DB (pgsql):

            Name                   |    Owner   | Encoding  | Collation | Ctype |   Access privileges  
hordewebmail                | horde       | UTF8      | C         | C     | 

What webmail-install asked charset is utf-8...

So if I make a new contact like &quot;Árvízt?r? Tükörfúrógép&quot; in turba I can search for it and I can see it with proper encoding... In the db dumb I see &quot;Árvízt?r? Tükörfúrógép&quot; too...

But if I impot my key file I see what is like unicode or so:

&quot;Bag A\\164\\164rib\\165\\164es\\012    friendl\\171Name: s\\172ims\\172on@oregpresha\\172.e\\165 S\\164ar\\164Com L\\164d. a\\172onos\\355\\164\\363ja\\012    localKe\\171ID: AF 76 8E 36 37 78 4A 4D 1D 34 09 69 A1 28 05 AE 18 02 62 62 \\012Ke\\171 A\\164\\164rib\\165\\164es: &lt;No A\\164\\164rib\\165\\164es&gt;\\012-----BEGIN RSA PRIVATE KEY-----\\012Proc-T\\171pe: 4,ENCRYPTED\\012DEK-Info: DES-EDE3-CBC,513EC7D887C811DF\\012\\012BENCZY\\167jE29b\\170KqcmdI1OOaDPHrZ/s+1CT7XjQsZ6c\\1679AmlU2DdFBX/9OihNGYNK\\012r\\166CcjXa1ocgqXd\\1677eeY\\17232XATKA3Pm\\165fjYrApMh8YN9maXRD\\167\\172F\\166\\172ZjNmBb/&quot;

So it seems to me that is not an encoding error in db side...



&gt;&gt;         4=\\012-----END CERTIFICATE-----&#039;) [pid 21062 on line 801 of
&gt;&gt; &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]
&gt;
&gt; Did you upgrade from a previous version of Horde?  At first glance it 
&gt; looks like you did not properly upgrade your SQL backend charset.  
&gt; But I&#039;m not the DB expert.
</description> 
   <pubDate>Mon, 12 Sep 2011 08:13:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67439</link> 
  </item> 
   
  <item> 
   <title>hm... seems like Whups is haunted with encoding problems too</title> 
   <description>hm... seems like Whups is haunted with encoding problems too :(

The &quot;Árvízt?r?&quot;  string is &#039;   Árvíztu&quot;ro&quot;   &#039;.  It&#039;s some kind of utf-8 error...

&gt; Yes i upgraded it from previous version. I have now the DB (pgsql):
&gt;
&gt;             Name                   |    Owner   | Encoding  | 
&gt; Collation | Ctype |   Access privileges
&gt; hordewebmail                | horde       | UTF8      | C         | C     |
&gt;
&gt; What webmail-install asked charset is utf-8...
&gt;
&gt; So if I make a new contact like &quot;Árvízt?r? Tükörfúrógép&quot; in turba I 
&gt; can search for it and I can see it with proper encoding... In the db 
&gt; dumb I see &quot;Árvízt?r? Tükörfúrógép&quot; too...
&gt;
&gt; But if I impot my key file I see what is like unicode or so:
&gt;
&gt; &quot;Bag A\\164\\164rib\\165\\164es\\012    friendl\\171Name: 
&gt; s\\172ims\\172on@oregpresha\\172.e\\165 S\\164ar\\164Com L\\164d. 
&gt; a\\172onos\\355\\164\\363ja\\012    localKe\\171ID: AF 76 8E 36 37 78 
&gt; 4A 4D 1D 34 09 69 A1 28 05 AE 18 02 62 62 \\012Ke\\171 
&gt; A\\164\\164rib\\165\\164es: &lt;No 
&gt; A\\164\\164rib\\165\\164es&gt;\\012-----BEGIN RSA PRIVATE 
&gt; KEY-----\\012Proc-T\\171pe: 4,ENCRYPTED\\012DEK-Info: 
&gt; DES-EDE3-CBC,513EC7D887C811DF\\012\\012BENCZY\\167jE29b\\170KqcmdI1OOaDPHrZ/s+1CT7XjQsZ6c\\1679AmlU2DdFBX/9OihNGYNK\\012r\\166CcjXa1ocgqXd\\1677eeY\\17232XATKA3Pm\\165fjYrApMh8YN9maXRD\\167\\172F\\166\\172ZjNmBb/&quot;
&gt;
&gt; So it seems to me that is not an encoding error in db side...
&gt;
&gt;
&gt;
&gt;&gt;&gt;         4=\\012-----END CERTIFICATE-----&#039;) [pid 21062 on line 801 of
&gt;&gt;&gt; &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]
&gt;&gt;
&gt;&gt; Did you upgrade from a previous version of Horde?  At first glance it
&gt;&gt; looks like you did not properly upgrade your SQL backend charset.
&gt;&gt; But I&#039;m not the DB expert.
&gt;
</description> 
   <pubDate>Mon, 12 Sep 2011 08:20:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67440</link> 
  </item> 
   
  <item> 
   <title>OKAY, clean install, without a preexistent db but with mysql</title> 
   <description>OKAY, clean install, without a preexistent db but with mysql:

          um0ABj6y6koQOdjQK/W/7HW/lwLFCRsI3FU34oH7N4RDYiDK51ZLZer+bMEkkySh
          NOsF/5oirpt9P/FlUQqmMGqz9IgcgA38corog14= -----END CERTIFICATE-----&#039;) [pid 20396 on line 801 of &quot;/var/www/horde/pear/php/Horde/Db/Adapter/Base.php&quot;]
2011-09-12T12:01:56+02:00 WARN: HORDE [imp] PHP ERROR: json_encode(): Invalid UTF-8 sequence in argument [pid 20396 on line 289 of &quot;/var/www/horde/pear/php/H
orde/Prefs/Scope.php&quot;]
2011-09-12T12:01:56+02:00 DEBUG: HORDE 1. Horde_Prefs-&gt;store()
2. Horde_Core_Prefs_Cache_Session-&gt;store() /var/www/horde/pear/php/Horde/Prefs.php:396
3. Horde_Session-&gt;set() /var/www/horde/pear/php/Horde/Core/Prefs/Cache/Session.php:34
4. serialize() /var/www/horde/pear/php/Horde/Session.php:334
5. Horde_Prefs_Scope-&gt;serialize()
6. json_encode() /var/www/horde/pear/php/Horde/Prefs/Scope.php:289
7. Horde::errorHandler()

Something is definitely wrong with it...</description> 
   <pubDate>Mon, 12 Sep 2011 10:06:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67442</link> 
  </item> 
   
  <item> 
   <title>Hm... There are a lot of &quot;PHP ERROR: json_encode(): Invalid </title> 
   <description>Hm... There are a lot of &quot;PHP ERROR: json_encode(): Invalid UTF-8 sequence in argument&quot; in the log :(
but I think now that the ssl sign and encrypt are not because the json_encode() broken :(

&gt; OKAY, clean install, without a preexistent db but with mysql:
&gt;
&gt;           um0ABj6y6koQOdjQK/W/7HW/lwLFCRsI3FU34oH7N4RDYiDK51ZLZer+bMEkkySh
&gt;           NOsF/5oirpt9P/FlUQqmMGqz9IgcgA38corog14= -----END 
&gt; CERTIFICATE-----&#039;) [pid 20396 on line 801 of 
&gt; &quot;/var/www/horde/pear/php/Horde/Db/Adapter/Base.php&quot;]
&gt; 2011-09-12T12:01:56+02:00 WARN: HORDE [imp] PHP ERROR: json_encode(): 
&gt; Invalid UTF-8 sequence in argument [pid 20396 on line 289 of 
&gt; &quot;/var/www/horde/pear/php/H
&gt; orde/Prefs/Scope.php&quot;]
&gt; 2011-09-12T12:01:56+02:00 DEBUG: HORDE 1. Horde_Prefs-&gt;store()
&gt; 2. Horde_Core_Prefs_Cache_Session-&gt;store() 
&gt; /var/www/horde/pear/php/Horde/Prefs.php:396
&gt; 3. Horde_Session-&gt;set() 
&gt; /var/www/horde/pear/php/Horde/Core/Prefs/Cache/Session.php:34
&gt; 4. serialize() /var/www/horde/pear/php/Horde/Session.php:334
&gt; 5. Horde_Prefs_Scope-&gt;serialize()
&gt; 6. json_encode() /var/www/horde/pear/php/Horde/Prefs/Scope.php:289
&gt; 7. Horde::errorHandler()
&gt;
&gt; Something is definitely wrong with it...
</description> 
   <pubDate>Mon, 12 Sep 2011 11:19:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67443</link> 
  </item> 
   
  <item> 
   <title>I see some text coming from openssl binary... It is running </title> 
   <description>I see some text coming from openssl binary... It is running in hu_HU.UTF-8 locale. Could it be that running openssl in different locale like hu_HU.UTF-8 and not en_US... cause problems with it.

There is some text from openssl binary in db with wrong encoding too... (clean install, clean mysql db, no update no data)

Can&#039;t sign mail. can&#039;t see the imported ssl key no hint that I imported it. Can&#039;t encrypt mail... :(

&gt; Hm... There are a lot of &quot;PHP ERROR: json_encode(): Invalid UTF-8 
&gt; sequence in argument&quot; in the log :(
&gt; but I think now that the ssl sign and encrypt are not because the 
&gt; json_encode() broken :(
&gt;
&gt;&gt; OKAY, clean install, without a preexistent db but with mysql:
&gt;&gt;
&gt;&gt;           um0ABj6y6koQOdjQK/W/7HW/lwLFCRsI3FU34oH7N4RDYiDK51ZLZer+bMEkkySh
&gt;&gt;           NOsF/5oirpt9P/FlUQqmMGqz9IgcgA38corog14= -----END
&gt;&gt; CERTIFICATE-----&#039;) [pid 20396 on line 801 of
&gt;&gt; &quot;/var/www/horde/pear/php/Horde/Db/Adapter/Base.php&quot;]
&gt;&gt; 2011-09-12T12:01:56+02:00 WARN: HORDE [imp] PHP ERROR: json_encode():
&gt;&gt; Invalid UTF-8 sequence in argument [pid 20396 on line 289 of
&gt;&gt; &quot;/var/www/horde/pear/php/H
&gt;&gt; orde/Prefs/Scope.php&quot;]
&gt;&gt; 2011-09-12T12:01:56+02:00 DEBUG: HORDE 1. Horde_Prefs-&gt;store()
&gt;&gt; 2. Horde_Core_Prefs_Cache_Session-&gt;store()
&gt;&gt; /var/www/horde/pear/php/Horde/Prefs.php:396
&gt;&gt; 3. Horde_Session-&gt;set()
&gt;&gt; /var/www/horde/pear/php/Horde/Core/Prefs/Cache/Session.php:34
&gt;&gt; 4. serialize() /var/www/horde/pear/php/Horde/Session.php:334
&gt;&gt; 5. Horde_Prefs_Scope-&gt;serialize()
&gt;&gt; 6. json_encode() /var/www/horde/pear/php/Horde/Prefs/Scope.php:289
&gt;&gt; 7. Horde::errorHandler()
&gt;&gt;
&gt;&gt; Something is definitely wrong with it...
&gt;
</description> 
   <pubDate>Mon, 12 Sep 2011 11:32:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67445</link> 
  </item> 
   
  <item> 
   <title>Actually the wrong text is coming from the Hungarian Thunder</title> 
   <description>Actually the wrong text is coming from the Hungarian Thunderbird...</description> 
   <pubDate>Mon, 12 Sep 2011 20:12:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67457</link> 
  </item> 
   
  <item> 
   <title>so, I have it...

horde need to sanitize the input from pk</title> 
   <description>so, I have it...

horde need to sanitize the input from pkcs12 files. Mozilla exports the keys with some additional text. And the text is in the language like the thunderbird or firefox itself...
One possible solution is that only use and store the ----- BEGIN... ...END ----- part and exclude all the other text.

&gt; Actually the wrong text is coming from the Hungarian Thunderbird...


</description> 
   <pubDate>Mon, 12 Sep 2011 20:34:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67458</link> 
  </item> 
   
  <item> 
   <title>Duplicate of Bug #10602.</title> 
   <description>Duplicate of Bug #10602.</description> 
   <pubDate>Tue, 04 Oct 2011 06:37:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10497#t67902</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
