Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48923 invoked from network); 21 Mar 2003 10:51:49 -0000 Received: from unknown (HELO secure.thebrainroom.com) (213.239.42.171) by pb1.pair.com with SMTP; 21 Mar 2003 10:51:49 -0000 Received: from localhost.localdomain (brain.dial.nildram.co.uk [195.149.29.154]) by secure.thebrainroom.com (8.9.3/8.9.3) with ESMTP id LAA01190; Fri, 21 Mar 2003 11:08:33 GMT Received: from zaneeb (zaneeb [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id h2LApl000810; Fri, 21 Mar 2003 10:51:47 GMT Date: Fri, 21 Mar 2003 10:51:47 +0000 (GMT) X-X-Sender: wez@localhost.localdomain To: Antony Dovgal cc: internals@lists.php.net In-Reply-To: <20030321124105.6a71c972.tony2001@phpclub.net> Message-ID: References: <20030321124105.6a71c972.tony2001@phpclub.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] suggested patch for ext/standard/html.c for correct htmlentity'ing of cyrillic characters From: wez@thebrainroom.com (Wez Furlong) +1 from me (I will apply it to PHP5). This looks like a suitable candidate for 4.3.2 also; no new code is introduced by this patch, merely a lookup table, and adding more encodings can be regarded as a fix. Opinions? --Wez. On Fri, 21 Mar 2003, Antony Dovgal wrote: > Hello, all. > > Attached patch provides cyrillic character sets support to > htmlentities(), useful for those who wants to see correct cyrillic > letters after using this function (at this moment htmlentities() > successfully breaks cyrillic characters). > KOI8-R, Windows-1251 & CP866 encodings are supported. > > I've tested this patch with PHP-CVS & PHP 4.3.2RC1 - it seems to be > working correctly. > Someone who has enough karma - please, take a look at it and apply it > if it's ok. > > > -- > Wbr, > Antony Dovgal aka tony2001 mailto:tony2001@phpclub.net > http://phpclub.net > --- > Stand for something or you will fall for nothing. >