using mod_chardet

reference : http://my.oops.org/126
reference : http://svn.oops.org/wsvn/PHP.mod_chardet/trunk/README
r
eference : https://github.com/OOPS-ORG-PHP/mod_chardet

case : ubuntu

download package
mod_chardet : ftp://mirror.oops.org/pub/oops/php/extensions/mod_chardet/mod_chardet-0.0.4.tar.bz2
libchardet: ftp://mirror.oops.org/pub/oops/libchardet/libchardet-1.0.4.tar.bz2

this blog download link : libchardet-1.0.4.tar.bz2mod_chardet-0.0.5.tar.gz

sudo apt-get install build-essential gawk re2c

# install libchardet(moz)
tar xvfj libchardet-1.0.4.tar.bz2
cd libchardet-1.0.4/
./configure
make
sudo make install

# install libicu(icu)
sudo apt-get install libicu-dev

# install py-chardet
sudo apt-get install python-dev python-chardet
# or
sudo apt-get install python-dev
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
sudo pip install chardet

# install mod_chardet
tar xvfj mod_chardet-0.0.4.tar.bz2
cd mod_chardet-0.0.4
phpize
./configure
make;
sudo make install
sudo vi /etc/php5/conf.d/mod_chardet.ini

extension=chardet.so

#test
php test.php

글쓴이

yupmin

Inside Deep Throat.

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다

This site uses Akismet to reduce spam. Learn how your comment data is processed.