It seems utf characters are not supported.

If you lookup index.hu a foreign domain for example, accented characters are broken.

Cheers,
G

CommentFileSizeAuthor
#1 whois-509952-utf_support.patch2.2 KBhelmo

Comments

helmo’s picture

Status: Active » Needs review
StatusFileSize
new2.2 KB

Since the whois does not mandate a specific encoding this is a bit tricky. However the attached patch introduces utf8_encode() in a number of places.

It seems to do the trick for index.hu, but it screws up index.cn.

Any ideas would be welcome.

helmo’s picture

Assigned: Unassigned » helmo
Status: Needs review » Fixed

Just committed a modified version of this patch, which includes a distinction for .hu domains.

See: http://drupalcode.org/viewvc/drupal/contributions/modules/whois/whois.mo...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

helmo’s picture

The 4.2.0 version of the phpwhois library has a fix for the encoding of .hu domains. I have therefore removed the in #2 mentioned distinction from CVS.