Req #47140 [Com]: Add UTF-8 to convert_cyr_string()

From: Date: Sat, 05 May 2018 13:08:41 +0000
Subject: Req #47140 [Com]: Add UTF-8 to convert_cyr_string()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215057@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=47140&edit=1 ID: 47140 Comment by: spam2 at rhsoft dot net Reported by: boen dot robot at gmail dot com Summary: Add UTF-8 to convert_cyr_string() Status: Wont fix Type: Feature/Change Request Package: Strings related Operating System: Windows Vista Ultimate x64 PHP Version: 5.2.8 Assigned To: cmb Block user comment: N Private report: N New Comment: > Instead I'd rather deprecate the highly specialized > function, in favor of using iconv() or mb_convert_encoding() please don't throw the wod "deprecate" that lightly just because functions are specialized or someone pretends options are dangerous if you use them in the wrong context don't make it a good idea to break existing code $allowable_tags of strip_tags() which is proposed to get deprectaed with 7.3 for no sane reason because nobody is forced to use it and you can shoot yourself in the foot in million ways - why don't deprecate "unlink" because someone could write unlink($_REQUEST['file_to_delete']) Previous Comments: ------------------------------------------------------------------------ [2018-05-05 12:26:56] cmb@php.net Adding UTF-8 support to convert_cyr_string() does not make much sense to me. Instead I'd rather deprecate the highly specialized function, in favor of using iconv() or mb_convert_encoding() in the first place. If you feel differently, please start the RFC process, see <https://wiki.php.net/rfc/howto>. ------------------------------------------------------------------------ [2009-01-17 20:44:25] boen dot robot at gmail dot com Description: ------------ Many comments in the convert_cyr_string() function provide some ways of converting cyrilic charsets to UTF-8. It would be great to have those compiled in, and ideally, also have the other convertion - from UTF-8 into the cyrillic charsets. With the iconv library and those comments in place, how difficult would it be to do that? (BTW, when I've used iconv to do UTF-8 to Windows-1251 , I sometimes get an unsupported character error and I'm not sure why even though the text never had any exotic characters... but that's another thing that may be my fault, so I don't consider it a bug just yet) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=47140&edit=1

« previous php.bugs (#215057) next »