Re: Re: mbstring and html encode/const structs
| From: | (Marcus Börger) | Date: | Thu, 01 Aug 2002 18:29:12 +0000 |
| Subject: | Re: Re: mbstring and html encode/const structs | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86432@lists.php.net to get a copy of this message | ||
I have spent some more work and now i can decode HTML upon input, too.
If you set (arg_separator.input = "|") and (mbstring.internal_encoding = ISO-8859-15) in your ini file
you can do something like this:
testpage.php?var=Aä€
and receive $_GET['VAR'] = 'A and both ä and € decoded.
This will work for post, too. So you can upload html pages decode them and do something with it.
If you use HTML as output encoding and do foreach($_GET as $idx=>$val) echo $idx=$val; you will
see the original input again (as expected minus | if any).
But again i have problems if internal encoding is Multibate encoding. I have to send some
search on internal handling....
Anyone interested may download the patch: http://marcus-boerger.de/php/ext/mbstring/mbstring-entities-const.patch
And the additional file holding the translation table: http://marcus-boerger.de/php/ext/mbstring/html_entities.c
marcus
At 04:11 01.08.2002, Yasuo Ohgaki wrote:
Interesting. Marcus Boerger wrote:Anyone interested may download the patch: http://marcus.boerger.de/php/ext/mbstring/mbstring-entities-const.patch And the additional file holding translation the table: http://marcus.boerger.de/php/ext/mbstring/html_entities.cbut I cannot access to your web site.... -- Yasuo Ohgaki -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php