PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<hw_api->userlisticonv_get_encoding>
view the version of this page
Last updated: Sun, 02 May 2004

XL. funzioni iconv

Qesto moudlo contiene un'interfaccia con le funzioni della libreria iconv. Per essere abilitati ad usare queste funzioni definite in questo modulo si deve compilare l'interprete PHP usando l'opzione --with-iconv. Per fare cosė, devi avere la funzione iconv() nella libreria standard di C o libriconv installata sul tuo sistema. La libreria libiconv č reperebile presso l'indirizzo http://www.gnu.org/software/libiconv/.

La libreria iconv converte i file tra vari set di caratteri. I set di caratteri supportati dipendono dall'implementazione di iconv() sul tuo sistema. Nota che la funzione iconv() non č utilizzabile come ti aspetti su alcuni sistemi. In questo caso, dovresti installare la libreria libiconv.

Sommario
iconv_get_encoding -- Visualizza l'attuale impostazione per la conversione dei caratteri codificati
iconv_mime_decode_headers --  Decodes multiple MIME header fields at once
iconv_mime_decode --  Decodes a MIME header field
iconv_mime_encode --  Composes a MIME header field
iconv_set_encoding -- Setta l'attuale impostazione per la conversione dei caratteri codificati
iconv_strlen --  Returns the character count of string
iconv_strpos --  Finds position of first occurrence of a needle within a haystack.
iconv_strrpos --  Finds the last occurrence of a needle within the specified range of haystack.
iconv_substr --  Cut out part of a string
iconv -- Converte una stringa nel set di caratteri richiesto
ob_iconv_handler -- Converte caratteri codificati come un output buffer handler


add a note add a note User Contributed Notes
funzioni iconv
thierry.bo
23-Dec-2003 08:26
Windows users.

Personaly I leaved all php dlls in \php\dlls\ directory, just adding this path to my system path, and iconv.dll supplied with php 4.3.2 works fine, also leaving supplied php_iconv.dll in my \php\extensions\ directory. This was working fine with Apache and Omnihttpd server I use.

As soon I installed IIS on the same server, php complained about not finding php_iconv.dll in the extensions directory. In fact PHP with IIS loads all extensions in my \php\extensions directory correctly, except php_iconv.dll.
Although iconv.dll is in my system path, the only way to load php_iconv.dll was to copy iconv.dll file in \%winnt\system32 directory. With other servers, iconv.dll can be in anywhere in the system path.
VIeo
11-Dec-2003 12:35
Windows users:

If you have having troubles with this module as I did, my solution was easily found by using the packed php_iconv.dll in my extensions folder and using the downloadable version as in the post above in the %windows%\system32 folder.

Nothing would work any other way (i.e. php_iconv.dll in my system folder or the downloaded iconv.dll in my extensions).

be safe.. downloadable goes in the system folder (as iconv.dll,  not renamed) and php_iconv.dll goes in the extensions folder (unrenamed also).

happy hunting.
ALecFFer
06-Nov-2003 10:10
To windows users:

Download here iconv version 1.9.1:
http://www.zlatkovic.com/pub/libxml/iconv-1.9.1.win32.zip
simons at bonapetit dot cz
15-Apr-2003 02:56
If iconv reports errros like the following

iconv: illegal input sequence at position 31883

you can circumvent this problem by adding //TRANSLIT
to your charset

print iconv( 'UTF-8', 'iso-8859-2//TRANSLIT', $inString );
13-Sep-2002 11:23
I'm not sure how recent version of
glibc 2.x Slackware 7.x/8.x comes with, but
it's very likely that it comes with glibc 2.2.x.
In that case, you don't have to bother at all to
install libiconv in /usr/local. iconv(3) in glibc 2.2.x
is very good (thanks to Ulrich Drepper and
Bruno Haible. the latter is the author of libiconv).
libiconv is very handy for those outdated/non-standard-compliant Unix
and non-Unix systems that don't have
sufficiently good iconv(3) in their C library.
elk at NOSPAMmodel-fx dot com
26-Jul-2002 03:07
If you use the libiconv library instead of the libc's iconv support, don't forget to use libiconv() instead of iconv()
elk at NOSPAMmodel-fx dot com
25-Jul-2002 02:39
To compile libiconv under Slackware 7.0 or 8.0 without errors (either with the apache module of PHP or the CGI version), you must specify the full path of the libiconv installation.

Exemple :

       --with-iconv=/usr/local

<hw_api->userlisticonv_get_encoding>
 Last updated: Sun, 02 May 2004
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2004 The PHP Group
All rights reserved.
This mirror generously provided by: Italia OnLine S.p.a.
Last updated: Fri May 21 04:11:23 2004 CEST