Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5633 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63089 invoked by uid 1010); 21 Nov 2003 14:46:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63065 invoked from network); 21 Nov 2003 14:46:43 -0000 Received: from unknown (HELO ns1.bulldogdsl.com) (212.158.192.11) by pb1.pair.com with SMTP; 21 Nov 2003 14:46:43 -0000 Received: from [10.0.0.1] (host-212-158-205-94.bulldogdsl.com [212.158.205.94]) by ns1.bulldogdsl.com (Postfix) with ESMTP id F38D8117C3 for ; Fri, 21 Nov 2003 14:46:42 +0000 (GMT) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Fri, 21 Nov 2003 14:46:39 +0000 To: PHP internals Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: multipart/mixed; boundary="B_3152270802_15317546" Subject: Re: [PHP-DEV] [PATCH] Add MacRoman encoding to htmlentities From: marcus@synchromedia.co.uk (Marcus Bointon) References: --B_3152270802_15317546 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Ahem, and again, with the attachment... on 21/11/03 14:45, Marcus Bointon at marcus@synchromedia.co.uk wrote: > Hi, > > Attached is a patch against 5.0.0b2 for ext/standard/html.c that adds > support for the MacRoman encoding to the htmlentities function. I guess it > may also be used by html_decode_entities too. > > It will require further attention as I don't quite get what I need to do in > html escape and unescape functions, but it includes the hard bit which is > the actual translation table. > > With the rise of MacOS X, the lack of MacRoman encoding in PHP is a bit of a > pain as it's the default encoding on there. I also posted a PHP function in > a user comment on htmlentities that performs this conversion, but it would > obviously be better to have this done internally. > > I hope someone can finish this off properly as C is not my thing. > > Thanks, > > Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk --B_3152270802_15317546--