On 28 November 2014 06:51:56 GMT, Stanislav Malyshev <smalys...@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.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to