String encoding in extension API
| From: | Behnam Esfahbod | Date: | Sun, 26 May 2013 20:47:41 +0000 |
| Subject: | String encoding in extension API | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-10686@lists.php.net to get a copy of this message | ||
Hi there,
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?
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()?
Would appreciate any hints,
-Behnam
--
Behnam Esfahbod | بهنام اسفهبد
http://behnam.es/
GPG-FP: 3E7F B4B6 6F4C A8AB 9BB9 7520 5701 CA40 259E 0F8B