From owner-freebsd-gnome@FreeBSD.ORG Sat Mar 15 10:08:21 2008 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 699E11065673; Sat, 15 Mar 2008 10:08:21 +0000 (UTC) (envelope-from bland@bbnest.net) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 24BD18FC22; Sat, 15 Mar 2008 10:08:21 +0000 (UTC) (envelope-from bland@bbnest.net) Received: from hub.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) by mail.asahi-net.or.jp (Postfix) with ESMTP id DB3683FE2B; Sat, 15 Mar 2008 18:50:20 +0900 (JST) Received: from nest.bbnest.net (nest.bbnest.net [10.0.0.249]) by hub.bbnest.net (8.14.2/8.14.1) with ESMTP id m2F9oJ1A065281 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 15 Mar 2008 18:50:19 +0900 (JST) (envelope-from bland@bbnest.net) Message-Id: <723D9E97-C94F-4859-A578-B4478B764F43@bbnest.net> From: Alexander Nedotsukov To: yes298 yes298 In-Reply-To: <1f873bfb0803130226k54ff8ffav1d7d8d0bd278730e@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sat, 15 Mar 2008 18:52:19 +0900 References: <1f873bfb0803130226k54ff8ffav1d7d8d0bd278730e@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) X-Spam-Status: No, score=0.8 required=5.0 tests=ALL_TRUSTED,DEAR_SOMETHING autolearn=no version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on hub.bbnest.net Cc: gnome@freebsd.org, bland@freebsd.org, ale@freebsd.org Subject: Re: iconv can NOT work properly ... X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2008 10:08:21 -0000 Hi, Please show us your gb2312 code snippet which can not be converted with: $ cat you_code_snippet.txt | iconv -f gb2312 -t big5 Thanks, Alexander. On 13.03.2008, at 18:26, yes298 yes298 wrote: > Dear Sir, > > Our company PHP programs developed on Linux, and work normally, > but when move to FreeBSD v7.0(x64), I found that iconv() function > can't > work properly, funciton iconv() and mb_convert_encoding() can convert > gb2312 or big5 to utf8 properly, but can NOT convert between gb2312 > and big5, not nothing include error message to show ... > > Then I do same testing on FreeBSD with command iconv , also failed > to convert between gb2312 and big5, and error message show: > iconv: cannot convert > > Using php function phpinfo() result as below: > iconv support enabled > iconv implementation libiconv > iconv library version 1.11 > > Directive Local Value Master Value > iconv.input_encoding ISO-8859-1 ISO-8859-1 > iconv.internal_encoding ISO-8859-1 ISO-8859-1 > iconv.output_encoding ISO-8859-1 ISO-8859-1 > > Using function var_dump(get_extension_funcs("iconv")); to get info as > below: > array(11) { [0]=> string(5) "iconv" [1]=> string(16) > "ob_iconv_handler" > [2]=> string(18) "iconv_get_encoding" [3]=> string(18) > "iconv_set_encoding" [4]=> string(12) "iconv_strlen" [5]=> string(12) > "iconv_substr" [6]=> string(12) "iconv_strpos" [7]=> string(13) > "iconv_strrpos" [8]=> string(17) "iconv_mime_encode" [9]=> string(17) > "iconv_mime_decode" [10]=> string(25) "iconv_mime_decode_headers" } > > As a result, I found funciton iconv() and mb_convert_encoding() and > FreeBSD > command iconv can NOT convert between gb2312 and big5. > > Please help to fix this problem, thanks so much for your help ... > > Best rgd, > Victor > _______________________________________________ > freebsd-gnome@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org > "