Req #4960 [Com]: support for different encoding
| From: | drunkenstranger@gmail.com | Date: | Tue, 13 Mar 2012 06:15:21 +0000 |
| Subject: | Req #4960 [Com]: support for different encoding | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8387@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=4960&edit=1
ID: 4960
Comment by: drunkenstranger@gmail.com
Reported By: jacekp at poczta dot wprost dot pl
Summary: support for different encoding
Status: Open
Type: Feature/Change Request
Package: PhpDocumentor
Operating System: Irrelevant
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
May I ask one question: suggested charset patch works fine. Why you wont
fix it to repository?
Previous Comments:
------------------------------------------------------------------------
[2011-09-02 16:39:36] drunkenstranger
http://www.smarty.net/docsv2/en/language.modifier.escape.tpl
Smarty documentation: escape modifier
------------------------------------------------------------------------
[2011-09-02 16:35:42] drunkenstranger
I found root of my problem with cyrillic charset in RIC. Open your
ric.tpl file and find this string:
{include file="header.tpl"}
<h1 align="center">{$name}</h1>
<pre>
{$contents|htmlentities}
</pre>
{include file="footer.tpl"}
htmlentities option escapes all cyrillic symbols, but do it wrong. So
you can just remove it:
{include file="header.tpl"}
<h1 align="center">{$name}</h1>
<pre>
{$contents}
</pre>
{include file="footer.tpl"}
------------------------------------------------------------------------
[2011-09-02 13:16:00] drunkenstranger
This patch works only with sources text. Tutorials and RIC still won't
shows correctly.
For tutorials shows correctly if you completely comment or remove this
code:
// fix 1151650
if (stristr($ret, "utf-8") !== "")
{
$ret = utf8_decode($ret);
}
I still don't understand how to fix RIC.
------------------------------------------------------------------------
[2011-08-21 23:09:22] miau
I've written a patch to add --charset switch.
Since the default value of --charset switch is "iso-8859-1", it is
backward compatible except for 3 templates that don't have the
Content-type meta element. (HTML:Smarty:default, HTML:Smarty:PHP and
CHM:default:default)
------------------------------------------------------------------------
[2011-08-21 22:54:33] miau
Added #patch bug:4960;patch:add-charset-switch;revision:1313963673;.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=4960
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=4960&edit=1