You can do it much simpler with: convert_to_string_with_converter_ex(current, UG(utf8_conv));
-Andrei On Dec 7, 2006, at 4:46 PM, Ilia Alshanetsky wrote:
+ + if (Z_TYPE_PP(current) == IS_UNICODE) {+ zend_unicode_to_string_ex(UG(utf8_conv), &postval, &data_len, Z_USTRVAL_PP(current), Z_USTRLEN_PP(current), &status);+ } else { + convert_to_string_ex(current); + postval = Z_STRVAL_PP(current); + data_len = Z_STRLEN_PP(current); + }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
