|
From: Alexandros V. <av...@no...> - 2005-05-23 13:20:15
|
On Mon, 2005-05-23 at 14:20 +0200, Martin Metzker wrote: > hello world! >=20 > maybe this question was handled before, but i couldnt find it in the=20 > archives. > the problem is that the new cyrus version we are using saves sieve=20 > scripts in utf8 encoding, All versions of Cyrus, and all implementations of Cyrus for that matter, use - or are supposed to use - UTF-8 for the encoding of the SIEVE scripts. > I didn't knwo that and now we are having=20 > problems with =E4=F6=FC=DF (äöüß). can i solve th= is=20 > problem by simply adding a utf8_encode($script) before the=20 > $sieve->sendscript($script) or do i have to change something in the=20 > sieve-php.lib? The class is supposed to receive data in UTF-8 format. It does not do any conversion by itself. You can use ut8_encode() and utf8_decode() but they work only for ISO-8859-1. Another option would be to feed the class directly with UTF-8, or use mbstring, recode or iconv. If you are using avelsieve, try enabling mbstring support in your PHP setup. The latest development version also supports iconv and recode modules. HTH, Alexandros |