Function htmlentities in HTML* packages

From: Date: Sun, 07 Apr 2002 19:58:38 +0000
Subject: Function htmlentities in HTML* packages
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5250@lists.php.net to get a copy of this message
Hello, I'm using some classes from HTML* packages and some funcions change my strings containing polish diacritic signs (i.e. "koń") into html entities (i.e. "koñ"). That causes incorrect text displaying on my page. I think that can be common in other languages. I suggest to use htmlspecialchars() function instead of htmlentities() in HTML* packages (whole PEAR?), because that function will not change diacritic signs. Possibly another way is to use third parameter in htmlentities() call, and autodetect charset or allow user to set charset (but i didn't check if it works). Problem is in: HTML_Common::_getAttrString() HTML_Select::toHtml() HTML_QuickForm_select::toHtml() - Wojtek

« previous php.pear.dev (#5250) next »