From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Nick Fedchik To: sisyphus@altlinux.ru Subject: Re: [sisyphus] php: iconv Date: Tue, 11 Nov 2003 14:06:14 +0200 User-Agent: KMail/1.5.4 References: <200311111229.31037.nick@fedchik.org.ua> <20031111105720.GE4102@sam-solutions.net> In-Reply-To: <20031111105720.GE4102@sam-solutions.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_/CNs/h14d1eAZ49"; charset="windows-1251" Content-Transfer-Encoding: 7bit Message-Id: <200311111406.23017.nick@fedchik.org.ua> X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.3 Precedence: list Reply-To: sisyphus@altlinux.ru List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 12:06:11 -0000 Archived-At: List-Archive: --Boundary-02=_/CNs/h14d1eAZ49 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline =C2 =F1=EE=EE=E1=F9=E5=ED=E8=E8 =EE=F2 =C2=F2 11 =CD=EE=FF 2003 12:57 Alexa= nder Bokovoy =ED=E0=EF=E8=F1=E0=EB(a): > =C2=EE=F2 =E1=E0=ED=E0=EB=FC=ED=FB=E9 =EF=F0=E8=EC=E5=F0 =E5=E3=EE =F0=E0= =E1=EE=F2=EE=F1=EF=EE=F1=EE=E1=ED=EE=F1=F2=E8: > $ cat test.php > $test =3D 'Iconv =F4=EE=F0=E5=E2=E0'; >> var_dump(iconv("CP1251", "UTF-8", $test)); > ?> >> $ php test.php > string(18) "Iconv =D1=84=D0=BE=D1=80=D0=B5=D0=B2=D0=B0" =C8=F1=EF=EE=EB=FC=E7=F3=FE =F5=EE=F1=F21 (=E1=FB=EB =EF=E5=F0=E5=E2=E5=E4= =E5=ED =ED=E0 =D1=E8=E7=E8=F4 =F1 =CC=E0=F1=F2=E5=F0=E0 2.2 =EF=F0=E8=EC=E5= =F0=ED=EE=20 =EF=EE=EB-=E3=EE=E4=E0 =ED=E0=E7=E0=E4, =ED=E5=F3=E4=E0=F7=ED=FB=E9 =E0=EF= =E4=E5=E9=F2 php) =CE=EA, =E4=E5=EB=E0=FE =F3 =F1=E5=E1=FF: cat test-iconv.php [root@vatra html]# php test-iconv.php string(12) "Iconv =EE=CF=D5=C1=C5=D0" =C3=F3=F2? =CF=EE=EB=E0=E3=E0=FE =F7=F2=EE =E4=E0. =C4=E0=EB=E5=E5: http://host1/test-iconv.php =46atal error: Call to undefined function: iconv() in=20 /var/www/html/test-iconv.php on line 3 =CD=E0=E3=EB=FF=E4=ED=E0=FF =E4=E5=EC=EE=ED=F1=F2=F0=E0=F6=E8=FF =EF=F0=EE= =E1=EB=E5=EC=FB? =CF=F0=E8=EB=EE=E6=E5=ED=E8=E5 1: =D4=F0=E0=E3=EC=E5=ED=F2=FB =E2=FB=E2=EE= =E4=E0 =E2=FB=E7=EE=E2=E0 phpinfo()=20 Configure Command './configure' '--build=3Di586-alt-linux'=20 '--host=3Di586-alt-linux' '--prefix=3D/usr' '--exec-prefix=3D/usr'=20 =2E.. '--enable-calendar' '--enable-bcmath' '--enable-ctype' '--with-iconv'=20 =2E.. Configuration File (php.ini) Path /etc/php/mod_php/php.ini PHP API 20020918 PHP Extension 20020429=20 =CF=F0=E8=EB=EE=E6=E5=ED=E8=E5 2: =C2=E5=F0=F1=E8=E8 =F3=F1=F2=E0=ED=EE=E2= =EB=E5=ED=ED=FB=F5 =EF=E0=EA=E5=F2=EE=E2 # rpm -q -a | grep php mod_php-4.3.4-alt0.cvs20031101 php-common-4.3.4-alt0.cvs20031101 php-imap-4.3.4-alt0.cvs20031101 php-xslt-4.3.4-alt0.cvs20031101 php-mhash-4.3.0-alt0.cvs20030124 php-sockets-4.3.4-alt0.cvs20031101 php-mmcache-2.4.4-alt1 php-curl-4.3.4-alt0.cvs20031101 php-readline-4.3.4-alt0.cvs20031101 php-4.3.4-alt0.cvs20031101 php-dba-4.3.4-alt0.cvs20031101 php-mysql-4.3.4-alt0.cvs20031101 php-snmp-4.3.4-alt0.cvs20031101 php-manual-ru-4.3.0-alt1 php-mcrypt-4.3.0-alt0.cvs20030124 php-devel-4.3.4-alt0.cvs20031101 php-openssl-4.3.4-alt0.cvs20031101 php-ldap-4.3.4-alt0.cvs20031101 php-pear-4.3.4-alt0.cvs20031101 php-pcntl-4.3.4-alt0.cvs20031101 phpMyAdmin-2.5.4-alt1 php-fribidi-4.3.4-alt0.cvs20031101 php-mbstring-4.3.4-alt0.cvs20031101 =CF=F0=E8=EB=EE=E6=E5=ED=E8=E5 3: =D1=E2=FF=E7=E8 =E4=E8=ED=E0=EC=E8=F7=E5= =F1=EA=E8=F5 =E1=E8=E1=EB=E8=EE=F2=E5=EA =E4=EB=FF =EC=EE=E4=F3=EB=FF libph= p4.so ldd libphp4.so libphp4common.so =3D> /usr/lib/libphp4common.so (0x4000f000) libc.so.6 =3D> /lib/libc.so.6 (0x40141000) libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0x4025d000) libnsl.so.1 =3D> /lib/libnsl.so.1 (0x4028f000) libexpat.so.0 =3D> /usr/lib/libexpat.so.0 (0x402a4000) libmm.so.1 =3D> /usr/lib/libmm.so.1 (0x402c3000) libz.so.1 =3D> /lib/libz.so.1 (0x402c7000) libresolv.so.2 =3D> /lib/libresolv.so.2 (0x402d6000) libm.so.6 =3D> /lib/libm.so.6 (0x402e9000) libdl.so.2 =3D> /lib/libdl.so.2 (0x4030c000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x80000000) =2D-=20 Best Regards, Nick Fedchik http://www.fedchik.org.ua/ --Boundary-02=_/CNs/h14d1eAZ49 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/sNC+YjtGCpYVAAsRAq+WAKCJOBxe4RmJHTb0IBnJ5f1vQv9fnACg7xb4 3/gsOy3JP+vlfFnbfZBgzv0= =Rtma -----END PGP SIGNATURE----- --Boundary-02=_/CNs/h14d1eAZ49--