Wrong charset, conversion from `utf-8′ to `windows-1251′ is not allowed chroot
Trying simple charset conversion with iconv: iconv(‘utf-8’, ‘windows-1251’, ‘test’); receive this error: Notice: iconv() [function.iconv]: Wrong charset, conversion from `utf-8′ to `windows-1251′ is not allowed in /var/htdocs/test.php on line 5
mod_php iconv() is not working properly if your apache is chrooted and you do not
have the content of /usr/lib/gconv/ folder into your relative chroot path (i.e. /your/chroot/path/usr/lib/gconv/).
You can simply do:
cp /usr/lib/gconv/* /your/chroot/path/usr/lib/gconv/
… and re-try.
Читайте також:
- Встановлення php модуля до веб-сервера apache на OpenBSD
- Назва сайту з www чи без?
- Apache: No space left on device: Couldn't create accept lock
- Erlang: convert any string to binary utf8
- Howto install Postfix and SASL (Debian, Ubuntu)
- Clearing caches from memory
- debian встановлення adobe flash player 10 64bit iceweasel (firefox)
- How To quick generate openssl certificate signing request
- Веб-камера Ricoh VGP-VCC5 в linux
- Запуск декількох X сесій