? .whois.module.swp ? phpwhois ? two-level-tlds Index: whois.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/whois/whois.module,v retrieving revision 1.11 diff -u -r1.11 whois.module --- whois.module 4 Dec 2009 11:08:40 -0000 1.11 +++ whois.module 4 Dec 2009 14:11:38 -0000 @@ -110,10 +110,10 @@ $data .= '

' . t('Whois lookup for %address:', array('%address' => $address)) . '

'; if (!empty($result['rawdata'])) { $utils = new utils; - $data .= $utils->showHTML($result); + $data .= utf8_encode($utils->showHTML($result)); } else { - $data .= implode($whois->Query['errstr'], "\n
"); + $data .= utf8_encode(implode($whois->Query['errstr'], "\n
")); } break; @@ -122,18 +122,18 @@ $data .= theme('whois_domain_status', $address, $result['regrinfo']['registered'] != 'no', $result); } else { - $data .= implode($whois->Query['errstr'], "\n
"); + $data .= utf8_encode(implode($whois->Query['errstr'], "\n
")); } break; case 'object': $data .= '

' . t('Whois lookup for %address:', array('%address' => $address)) . '

'; if ($whois->Query['status'] < 0) { - $data .= implode($whois->Query['errstr'], "\n
"); + $data .= utf8_encode(implode($whois->Query['errstr'], "\n
")); } else { $utils = new utils; - $data .= $utils->showObject($result); + $data .= utf8_encode($utils->showObject($result)); } break; @@ -141,10 +141,10 @@ default: $data .= '

' . t('Whois lookup for %address:', array('%address' => $address)) . '

'; if (!empty($result['rawdata'])) { - $data .= '
' . implode($result['rawdata'], "\n") . '
'; + $data .= '
' . utf8_encode(implode($result['rawdata'], "\n")) . '
'; } else { - $data .= implode($whois->Query['errstr'], "\n
"); + $data .= utf8_encode(implode($whois->Query['errstr'], "\n
")); } break; }