- fixed userland iconv encoding git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17140 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -510,7 +510,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract
$length = $this->_idnLength[strtoupper($this->_tld)];
}
- if (iconv_strlen($domainPart) > $length) {
+ if (iconv_strlen($domainPart, 'UTF-8') > $length) {
$this->_error(self::INVALID_HOSTNAME);
} else {
$check = true;