UTF-8 Problem of webclient continued !

Franz Skale i.bin at dah.am
Fri Feb 24 20:21:12 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1




Hi,
worked like a charm.
Many thanks.

Franz

Am 24.02.12 19:33, schrieb Thomas Nintemann:
> Hi Franz,
>
> i solved that Problem without Gunnars Patch simply wih the following
settings.
>
> For Webbrowsers:
>
> In templatefolder i add this to webclient-config_nls.php.template:
> $nls['defaults']['language'] = 'de_DE';
> $nls['defaults']['charset'] = 'UTF-8';
> $nls['charsets']['de_DE'] = 'UTF-8';
>
> Don´t forget kolabconf after edit a template.
>
> This is for the Webbrowsers that are by default in UTF-8 as IE9 Firefox 10
> Opera....
>
>
> For Attachements problems:
>
> In webclientconf dir i changed this in conf.php
>
> $conf['mailformat']['brokenrfc2231'] = false;
>
> to
>
> $conf['mailformat']['brokenrfc2231'] = true;
>
> This is for older and buggy Mailclients, that can´t decode UTF-8
Attachements
> correct.
>
>
> Then i had never again trouble with UTF-8
>
>
> Hope that helps....
>
> Thomas
>
>
>
> Am Freitag, 24. Februar 2012, 16:09:39 schrieb Franz Skale:
>> Now i did, what Gunnar mentioned in a post.
>> I debug $var via syslog (Horde::Logmessage didn't work at JSON.php ?!)
>> in Line 86 of JSON.php:
>>
>> $ident = 'JSON-UTF-8-DEBUG';
>> syslog(LOG_NOTICE | LOG_LOCAL7, $ident.' '.print_r($var,true));
>>
>> So i can say, that i'm not sure, why both identical requests are not
>> interpreted in the same way using different browsers.
>>
>>
>> Test:
>> Both browsers use the same encodig UTF-8 and both are set to locale
>> de_de and of course the server has this locale available.
>>
>> message: (cutted)
>>
>> From: Test User <test.senduser at example.com>
>> MIME-Version: 1.0
>> To: testuser at test.com
>> Subject: TESTMAIL UTF-8 !!!!
>> Content-Type: text/plain; charset=UTF-8
>> Content-Transfer-Encoding: 8bit
>> X-Kolab-Scheduling-Message: FALSE
>>
>>
>> ölölölölöölöölölölölölölöö
>>
>>
>> SAFARI: (GOOD)
>> JSON-UTF-8-DEBUG stdClass Object#012(#012 [response] => stdClass
>> Object#012 (#012 [folder] => INBOX#012
>> [index] => 19076#012 [uid] => 19076INBOX#012
>> [msgtext] => <tr><td class="text"><div class="fixed leftAlign">#012<br
>> />#015#012ölölölölöölöölölölölölölöö#012</div></td></tr>#012
>> [from] => <a class="address" personal="Test User"
>> email="test.senduser at exmaple.com" address="Test User
>> <test.senduser at exmaple.com>">Test User
>> <test.senduser at exmaple.com><img
>> src="/client/dimp/themes/silver/graphics/popdown.png" alt="" title=""
>> /></a>#012 [fulldate] => Fri, 24 Feb 2012 15:51:25 +0100
>> <small>[15:51:25 CET]</small>#012 [to] => <a class="address"
>> personal="" email="testuser at test.com"
>> address="testuser at test.com">testuser at test.com<img
>> src="/client/dimp/themes/silver/graphics/popdown.png" alt="" title=""
>> /></a>#012 [subject] => TESTMAIL UTF-8 !!!!#012
>> [priority] => normal#012 [source_link] =>
>>
/client/imp/view.php?mailbox=INBOX&index=19076&actionID=view_source&
>>
amp;id=1&mimecache=eaf2f42af72f6e3df646566f21c4f606&thismailbox=INBO
>> X#012 [minidate] => 15:51:25#012 )#012#012)
>>
>> Firefox: (BAD)
>> JSON-UTF-8-DEBUG stdClass Object#012(#012 [response] => stdClass
>> Object#012 (#012 [folder] => INBOX#012
>> [index] => 19076#012 [uid] => 19076INBOX#012
>> [msgtext] => Your server is unable to render UTF-8 message. The preview
>> won't work. Please contact your administrator.#012 [from] =>
>> <a class="address" personal="Test User"
>> email="test.senduser at example.com" address="Test User
>> <test.senduser at example.com>">Test User
>> <test.senduser at example.com><img
>> src="/client/dimp/themes/silver/graphics/popdown.png" alt="" title=""
>> /></a>#012 [fulldate] => Fri, 24 Feb 2012 15:51:25 +0100
>> <small>[15:51:25 CET]</small>#012 [to] => <a class="address"
>> personal="" email="testuser at test.com"
>> address="testuser at test.com">testuser at test.com<img
>> src="/client/dimp/themes/silver/graphics/popdown.png" alt="" title=""
>> /></a>#012 [subject] => TESTMAIL UTF-8 !!!!#012
>> [priority] => normal#012 [source_link] =>
>>
/client/imp/view.php?mailbox=INBOX&index=19076&actionID=view_source&
>>
amp;id=1&mimecache=eaf2f42af72f6e3df646566f21c4f606&thismailbox=INBO
>> X#012 [minidate] => 15:51:25#012 )#012#012)
>>
>> You see on the bad version:
>> [msgtext] => Your server is unable to render UTF-8 message. The preview
>> won't work. Please contact your administrator.#012
>>
>> In my opinion the textmessage will be converted to html and simply not
>> rendered correctly.
>> But for that to know exactly, how i can debug this in depth.
>>
>> Thanks in advance
>>
>> Franz
>>
>>
>>
>> _______________________________________________
>> Kolab-users mailing list
>> Kolab-users at kolab.org
>> https://kolab.org/mailman/listinfo/kolab-users
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9H4ygACgkQwXH75yyXWZuuaQCg5U7xPY62y2Bg4JPzWanOxmr8
HR8AoNuK/9tOLG5YMPfc2VrxkcgqFqxh
=eSDQ
-----END PGP SIGNATURE-----




More information about the users mailing list