使用iconv方法进行编码转换,在windows平台下面可以正常的工作(本地环境使用的win7),但是在linux环境下面iconv总是返回false(测试环境使用的linux)。
参考phpinfo的信息,iconv模块也已经正确加载,google一下,原来才知道,原来在linux版本下iconv这个方法还是有点问题的。
csdn上的一个网友给出的解决方案为:
一种方法是把iconv换成 mb_convert_encoding,另一种方法是修改iconv 的实现,从glibc 改为libiconv,搞了半天,烦躁!有朋友碰到的话,也可以这么解决了,按照该网友提供的第一个方法,将iconv方法修改为使用mb_convert_encoding,搞定。。
多谢该网友提供的解决方案.
下载:ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz
安装:
- #cp libiconv-1.8.tar.gz /usr/local/src
- #tar zxvf lib*
- #./configure –prefix=/usr/local/libiconv
- #make
- #make install
编译php
#./configure –prefix=/usr/local/php4.3.2 –with-iconv=/usr/local/libiconv/
使用的简单例子:echo iconv("gb2312","ISO-8859-1","我们");
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » linux 下 php的 iconv()函数
波比源码 » linux 下 php的 iconv()函数
levofloxacin 250mg pills levaquin over the counter
dutasteride online order cheap avodart buy zofran 4mg pills
buy spironolactone generic purchase valtrex online fluconazole buy online
ampicillin online buy cost erythromycin 250mg erythromycin 250mg sale
order fildena 50mg online nolvadex usa methocarbamol 500mg drug
buy generic sildenafil 100mg order estrace pills buy estradiol without prescription
order lamictal 50mg without prescription mebendazole price retin cream over the counter
order tadalis 10mg online cheap tadalafil online order diclofenac 100mg usa
oral accutane 10mg cost amoxil 1000mg buy zithromax 250mg online
indomethacin 75mg over the counter order cefixime pills trimox 500mg usa
tadalafil 10mg kaufen sildenafil 100mg ohne rezept sildenafil 50mg bestellen
doxycycline 100mg us buy clomid 100mg buy lasix 40mg online cheap
buspirone uk buy cordarone 100mg without prescription buy ditropan without prescription
buy terazosin for sale cheap leflunomide 20mg buy azulfidine sale
purchase benicar sale buy depakote 250mg without prescription acetazolamide 250 mg us
buy tacrolimus online tacrolimus 1mg canada generic ursodiol 150mg
molnupiravir medication lansoprazole online order lansoprazole without prescription
imuran 100mcg over the counter order salbutamol 100 mcg online sildenafil 50mg tablets
provera 10mg us buy cyproheptadine 4 mg without prescription purchase cyproheptadine without prescription
cheap modafinil 200mg buy generic modafinil ivermectin 0.1 uk
isotretinoin pill order deltasone 20mg online cheap purchase prednisone pills
piracetam us viagra 50mg pills viagra price
zithromax 500mg canada brand azithromycin 500mg buy neurontin 800mg for sale
buy tadalafil 20mg for sale order viagra pills sildenafil tablets
buy tadalafil online anafranil 50mg cheap order anafranil 50mg sale
olanzapine generic zyprexa 10mg pill valsartan 160mg drug
order clozapine 100mg pill order dexamethasone 0,0,5 mg online cheap dexamethasone oral
brand sildenafil 100mg sildenafil professional lisinopril sale
buy metoprolol online buy tenormin 50mg online cheap buy vardenafil 20mg pill
write thesis poker sites roulette wheel online
clomiphene without prescription order albuterol 4mg generic live blackjack
buy triamcinolone pills order generic desloratadine 5mg desloratadine online buy
buy generic cialis 40mg order tadalafil 20mg pills sildenafil tablet
order xenical generic diltiazem 180mg cost buy zovirax 400mg for sale
order tadalafil online clopidogrel price plavix 75mg cost
methotrexate 10mg drug cost methotrexate 5mg buy generic metoclopramide
buy generic sumatriptan 25mg dutasteride for sale purchase dutasteride
order colchicine buy colchicine pills online blackjack gambling
tadalafil liquid buy cipro 500mg online cheap cipro
zocor online finasteride us propecia 1mg ca
cephalexin 125mg cost cephalexin canada erythromycin 250mg drug
cialis pills 40mg tadalafil cost cheap viagra sale
buy viagra sale sildenafil order order cialis 40mg generic
cefuroxime pills methocarbamol generic order methocarbamol 500mg online
free spins no deposit uk tadalafil 5mg drug tadalafil 10mg price
term papers help academic writing online ivermectin 3 mg pills
sildenafil brand oral estrace 2mg cost lamictal 200mg
purchase prednisone without prescription amoxicillin 1000mg price order amoxicillin 250mg without prescription
real money slot machines free slots games buy modafinil 200mg for sale
order furosemide 100mg sale buy hydroxychloroquine 200mg hydroxychloroquine 400mg brand
fildena 100mg cost fildena ca rhinocort order online