svn: /web/php-news/trunk/ article.php
| From: | Shein Alexey | Date: | Mon, 01 Aug 2011 14:13:10 +0000 |
| Subject: | svn: /web/php-news/trunk/ article.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11819@lists.php.net to get a copy of this message | ||
shein Mon, 01 Aug 2011 14:13:10 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=314044
Log:
Removed unneeded converting strings when they're already in utf-8.
# It caused malformed letter's body in phpdoc.ru list.
Changed paths:
U web/php-news/trunk/article.php
Modified: web/php-news/trunk/article.php
===================================================================
--- web/php-news/trunk/article.php 2011-08-01 14:03:41 UTC (rev 314043)
+++ web/php-news/trunk/article.php 2011-08-01 14:13:10 UTC (rev 314044)
@@ -155,7 +155,7 @@
// we can't convert it to UTF, because cvs commits don't have charset info
// so its preferable to leave it as-is, and let users choose the correct charset
// in their browser. this is specially important for php.doc.* groups
- if ($charset) {
+ if ($charset && stripos($charset, 'utf-8') === false) {
$line = to_utf8($line, $charset);
}