Re: [RFC] IntlChar class and intl_char_*() functions

From: Date: Fri, 28 Nov 2014 08:57:09 +0000
Subject: Re: [RFC] IntlChar class and intl_char_*() functions
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-79265@lists.php.net to get a copy of this message
On 28 November 2014 06:51:56 GMT, Stanislav Malyshev <smalyshev@gmail.com> wrote: >Hi! > >> We already have the single-byte versions: chr() and ord(). It's been >on > >Not really. chr(0xA1) is a byte with value 0xA1. The function I propose >would instead produce "\xC2\xA1". Ah, yes, so it would. According to MDN, the JS functions actually return UTF-16, so it's not really the same as those either - it needs to specifically return a UTF-8 byte sequence.

« previous php.internals (#79265) next »