<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; iconv</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/iconv/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下安装libiconv使php支持iconv函数</title>
		<link>https://www.osyunwei.com/archives/9195.html</link>
		<comments>https://www.osyunwei.com/archives/9195.html#comments</comments>
		<pubDate>Sun, 02 Aug 2015 09:37:40 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[iconv]]></category>
		<category><![CDATA[libiconv]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9195</guid>
		<description><![CDATA[问题： 线上运行的lamp服务器，php不支持iconv函数。 解决方法： 安装libiconv，重新编译php，使php支持iconv函数，实现utf-8和gb2312编码的转换。 具体步骤： 1、下载libiconv cd /usr/local/src wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz #下载 2、安装libiconv cd /usr/local/src tar zxvf libiconv-1.14.tar.gz #解压 cd libiconv-1.14 #进入安装目录 ./configure --prefix=/usr/local/libiconv #配置 make #编译 make install #安装 3、重新编译php 查找系统之前的php编译参数 cd /usr/local/php/bin  #进入php安装目录 ./php -i &#124;more #查看php编译参数 如下： '--with-pdo_sqlite=shared' '--enable-bcmath=shared' '--enable-ftp=shared' '--enable-mbstring=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-zip' '--enable-soap=s hared' '--with-openssl' '--with-zlib' '--with-curl=shared' '--with-gd=shared' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9195.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9195.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
