On Sun, 26 May 2013 22:47:41 +0200, Behnam Esfahbod <[email protected]> wrote:

I'm updating pecl/fribidi to use zend_parse_parameters() instead of the
ancient zend_get_parameters() and I'm not sure what encoding expect from
zpp() when I ask for a string value with non-ascii characters. Is there any conversion done mechanically?

PHP strings have no encoded, they're basically just byte arrays. See the manual:
http://php.net/manual/en/language.types.string.php#language.types.string.details

Also, when I call RETURN_STRINGL with some UTF-8 encoded data, I get a
double-encoded string in my script. Again, what's the expected encoding for calling RETURN_STRINGL()?


I don't know what the problem is, but in any case RETURN_STRINGL() is not changing the data you're giving it any way. You're probably using the fridibi library incorrectly.

--
Gustavo Lopes

--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to