📜 ⬆️ ⬇️

phpDocumentor and UTF-8 sources

How to make phpDocumentator understand Russian text in UTF-8 source files:

1. you need to edit the file Setup.inc.php. It has a createDocs method where you need to fix the following.
- if (stristr($ret, "utf-8") !== "")
+ if (stristr($ret, "utf-8") === false)
{
$ret = utf8_decode($ret);
}


2. Go through the global replacement for all (*. *) Documentator files and replace
charset=iso-8859-1'/>
on
charset=utf-8'/>

3. Optional (it worked for me without it, but maybe it matters when outputting the manual to XML)
Go through the global replacement for all (*. *) Documentator files and replace
<?xml version="1.0" encoding="iso-8859-1"?>
on
<?xml version="1.0" encoding="utf-8"?>

PS Tested on the HTML: frames: default theme
')
Well and on snack, ready plug-in for Zend Studio for Eclipse

Source: https://habr.com/ru/post/49817/


All Articles