Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.php Subject: Re: Newby neds help Date: Mon, 09 Feb 2015 00:58:50 +0100 Organization: solani.org Lines: 25 Message-ID: References: <6rtcdahf5gqka5aavks1kub18uoqnd7ajl@4ax.com> <1839166.EmLIn1UUa8@PointedEars.de> <2569886.EXN0AjEPWQ@PointedEars.de> <11498271.5Lv7FqiNZX@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1423439928 8132 eJwFwQERACAIA8BKKDAwjm5H/wj+p2OBFUhETk48xnKAbduoRp7y6m2hke4x3tQrugo7ej4NRxDY (8 Feb 2015 23:58:48 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 8 Feb 2015 23:58:48 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 X-User-ID: eJwNysERwDAMArCVwhXjrpMEs/8Ird6qR9BtqsRKZQawx4jax+ht9kre9ScSzhF1ZSmdrQ87NxH8 In-Reply-To: <11498271.5Lv7FqiNZX@PointedEars.de> Cancel-Lock: sha1:BE8xdf6M/yscXGjzGHSMnD0iTJw= X-NNTP-Posting-Host: eJwFwQEBwDAIAzBLH9DC7FCGfwlP4DxUBsHAYtmU5X02qVNG7deQcGe83RJPvlXHRs5r8QMhsBEN Xref: csiph.com comp.lang.php:14923 Thomas 'PointedEars' Lahn wrote: > Christoph M. Becker wrote: > >> Therefore I've written "several hundrets" (should have been "hundreds", >> of course). However, AFAIK a UTF-8 encoded string will be URI-encoded >> octet-wise, > > If you mean by this that the code point of each character is determined, > then the code point’s UTF-8 code sequence is calculated, and then each > octet’s hexadecimal (uppercased) string representation is preceded by ”%”, > then you are correct. Yes, that is what I meant. Thanks for the clarification. :) >> so a single code point could occupy up to 12 characters in the URI, what >> would only be sufficient for roughly 150 such code points. > > Yes, up to 4 UTF-8 code units per code sequence are specified in the current > “Unicode Standard, Version 7.0” [1]. Hence “*at least* 6”. ACK. -- Christoph M. Becker