Re: Function htmlentities in HTML* packages
| From: | James Barwick | Date: | Sun, 09 Nov 2003 07:06:32 +0000 |
| Subject: | Re: Function htmlentities in HTML* packages | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23371@lists.php.net to get a copy of this message | ||
pull up subjects containing "XMLEntities" to see if this is your
problem. I bet it is.
James
Wojciech Gdela wrote:
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