Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16814

Re: htmlentities($dirs2[$i] not working

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: htmlentities($dirs2[$i] not working
Date Sat, 2 Jul 2016 13:32:08 +0200
Organization solani.org
Lines 21
Message-ID <nl88ng$5eu$1@solani.org> (permalink)
References <82cb6cae-3d18-4f71-bbc7-b5bcc706c364@googlegroups.com> <57778797$0$5899$e4fe514c@news.xs4all.nl>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1467459120 5598 eJwFwYEBwDAEBMCVwnt0HBH2H6F3hIt3mNONy/WqMS3JqYLmi7wvv2GLQNRK0SPZEk1rI+JJXwP1Xd37xTJ4AjpoFkmr4uFZg2R48geOfh1S (2 Jul 2016 11:32:00 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 2 Jul 2016 11:32:00 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
X-User-ID eJwNysEBwCAIA8CVBEwo4yDI/iPYex+MwvJNcGMwruY4Yl+ORK1sVwk5d92IoNag+78KoDLhDwzJEKo=
In-Reply-To <57778797$0$5899$e4fe514c@news.xs4all.nl>
Cancel-Lock sha1:l8DbWV1sFmi7QUTmbgqyehEsCSc=
X-NNTP-Posting-Host eJwNysEBBCEIA8CWwiIRykEN/ZdwN+8Jp/HuxeCKiRGGyr0OWLimZ11n6pSmRo5sN6DFsmf25IkzafrsOblH2d3g+xyX+ucviwjbAOKEfq7THg4=
Xref csiph.com comp.lang.php:16814

Show key headers only | View raw


On 02.07.2016 at 11:23, R.Wieser wrote:

> <sonnichjensen@gmail.com> schreef in berichtnieuws
> 82cb6cae-3d18-4f71-bbc7-b5bcc706c364@googlegroups.com...
> 
>> one is tha htmlentities($dirs2[$i] does not longer work - it
>> simply returns an empty string in case it contains ä ö or ü
>>
>> Any idea why?
> 
> Because that is what the docs have specified for it to do when it encounters
> illegal code unit sequences ?

Yes, indeed.  The OP most likely faces the problem outlined in
<http://php.net/manual/en/migration54.incompatible.php#115441>.  The
solution is simple: just explicitly set the $encoding parameter to the
desired enconding, or as of PHP 5.6.0, to set the ini directive
default_charset to the desired value.

-- 
Christoph M. Becker

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

htmlentities($dirs2[$i] not working sonnichjensen@gmail.com - 2016-07-02 01:12 -0700
  Re: htmlentities($dirs2[$i] not working "R.Wieser" <address@not.available> - 2016-07-02 11:23 +0200
    Re: htmlentities($dirs2[$i] not working "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-07-02 13:32 +0200

csiph-web