Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5632 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59947 invoked by uid 1010); 21 Nov 2003 14:45:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59922 invoked from network); 21 Nov 2003 14:45:26 -0000 Received: from unknown (HELO ns1.bulldogdsl.com) (212.158.192.11) by pb1.pair.com with SMTP; 21 Nov 2003 14:45:26 -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 8379211601 for ; Fri, 21 Nov 2003 14:45:25 +0000 (GMT) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Fri, 21 Nov 2003 14:45:23 +0000 To: PHP internals Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: [PATCH] Add MacRoman encoding to htmlentities From: marcus@synchromedia.co.uk (Marcus Bointon) 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