From owner-freebsd-gnome@FreeBSD.ORG Thu Mar 13 09:52: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 520DC1065670 for ; Thu, 13 Mar 2008 09:52:21 +0000 (UTC) (envelope-from yes298@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE318FC25 for ; Thu, 13 Mar 2008 09:52:20 +0000 (UTC) (envelope-from yes298@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so3809330wxd.7 for ; Thu, 13 Mar 2008 02:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=YkFh0ND8yuIHcLrzdh9wyhFkEGMFwBz5BS+uiufnKCk=; b=aEudWO9KVScJD1PYEAvNOXJVCfQ1DGnXJTjhq+I68JyEc2tG5i5QAXHwaOyp/eV9+61P862Tex5jvkVu1/xsrH0u+nsmUfEuyJM00PtSzuMSRLsA/dYPyGWriakPQA/hiu2SHc8CXt2K2pv6vg5Adc3YJjB90L3PilY1XxnzFKU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Q9XbBXsco86F+i07vydRpT/VtdU2n3fhQ5swnq+6gxLUFz1NyByeCjrcaXg0jO6YBtk9pnZ8DWvuzGWmJjvPKWp6veOt/pTKTjvul/sHuJ6C827EtzioWddZWFT30ssLY7jrWDboLiavxrbmmZHPar1dMGHnYrKG4LuczfRR+pU= Received: by 10.114.153.18 with SMTP id a18mr8992861wae.127.1205400412751; Thu, 13 Mar 2008 02:26:52 -0700 (PDT) Received: by 10.114.89.3 with HTTP; Thu, 13 Mar 2008 02:26:52 -0700 (PDT) Message-ID: <1f873bfb0803130226k54ff8ffav1d7d8d0bd278730e@mail.gmail.com> Date: Thu, 13 Mar 2008 17:26:52 +0800 From: "yes298 yes298" To: bland@FreeBSD.org, gnome@FreeBSD.org, ale@FreeBSD.org, yes298@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: 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: Thu, 13 Mar 2008 09:52:21 -0000 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