Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.6

Request #18732 .jp domains do not display japanese characters
Submitted: 2011-08-15 00:42 UTC
From: goan69 Assigned:
Status: Open Package: Net_Whois (version 1.0.5)
PHP Version: 5.3.6 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2011-08-15 00:42 UTC] goan69 (Mark Dickenson)
Description: ------------ When accessing Japanese domains via the whois module, the returned whois string does not display the Japanese characters (mixed character set). I have not been able to convert the strings to Japanese characters as I cannot workout what the character encoding actually is.. If the decoding could be done through the whois is module it would be very helpful! Test script: --------------- $whois = new Net_Whois(); $info = $whois->query($host); // $info = iconv("UTF-8", "ISO-8859-1//IGNORE", $info); // tried all the character sets I can think of $info = nl2br($info); $cf = fopen($fullpath, "w"); fwrite($cf, $info); fclose($cf); Expected result: ---------------- Does not show non ascii characters as japanese characters for .jp domains. see below example for mafp.co.jp If the whois string cannot be returned with the Japanese characters then the English version would do instead. Actual result: -------------- [ JPRS database provides information on network administration. Its use is ] [ restricted to network administration purposes. For further information, ] [ use 'whois -h whois.jprs.jp help'. To suppress Japanese output, add'/e' ] [ at the end of command, e.g. 'whois -h whois.jprs.jp xxx/e'. ] Domain Information: [$B%I%a%$%s>pJs(B] a. [$B%I%a%$%sL>(B] MAFP.CO.JP e. [$B$=$7$-$a$$(B] $B$f$&$2$s$,$$$7$c$R$e!<$^$M$/$H(B f. [$BAH?%L>(B] $BM-8B2q g. [Organization] HUMANNECT.inc k. [$BAH?% l. [Organization Type] limited private company m. [$BEPO?C4Ev n. [$B5;=QO"MmC4Ev p. [$B%M!<%`%5!<%P(B] 01.dnsv.jp p. [$B%M!<%`%5!<%P(B] 02.dnsv.jp s. [$B=pL>80(B] [$B>uBV(B] Connected (2012/01/31) [$BEPO?G/7nF|(B] 2008/01/30 [$B@\B3G/7nF|(B] 2008/01/30 [$B:G=*99?7(B] 2011/02/01 01:46:14 (JST)

Comments