Page 1 of 2
[SOLVED] problem with iconv_set_encoding() function
Posted: Sun Jan 11, 2004 9:05 am
by pelegk2
when i try to use this function i get :
Call to undefined function: iconv_set_encoding() in
when i unremarked from the php.ini the php_iconv.dll
and tried to restar the apache i got an error about that dll!
what to do?
thanks in advance
by the way : the dll is in the the php/extension folder
epelg
Posted: Sun Jan 11, 2004 9:30 am
by Pyrite
Try copying the dll into your Windows\System32 folder.
Posted: Sun Jan 11, 2004 10:04 am
by pelegk2
still not working the same error
Posted: Sun Jan 11, 2004 3:41 pm
by Pyrite
What is the apache error?
Posted: Mon Jan 12, 2004 12:54 am
by pelegk2
the error is " the dynamic link library iconv.dll can be found in specified pat"
Posted: Mon Jan 12, 2004 7:54 am
by Pyrite
What do you have your extension_dir = set to in your php.ini ?
Posted: Tue Jan 13, 2004 1:00 am
by pelegk2
extension_dir = "C:\PHP\extensions"
and here is a folder with that name and dll's
Posted: Tue Jan 13, 2004 9:14 am
by Pyrite
try setting it to "c:/php/extensions/"
Posted: Wed Jan 14, 2004 1:46 am
by pelegk2
nopes no good
Posted: Wed Jan 14, 2004 4:22 am
by twigletmac
Have you got other extensions enabled? If not have you tried enabling another extension?
Mac
Posted: Wed Jan 14, 2004 4:50 am
by pelegk2
yes of course
tis for example :
extension=php_java.dll
Posted: Wed Jan 14, 2004 5:22 am
by twigletmac
Have you read:
http://php.net/iconv
PHP Manual wrote:Note to Windows® Users: In order to enable this module on a Windows® environment, you need to put a DLL file named iconv.dll or iconv-1.3.dll (prior to 4.2.1) which is bundled with the PHP/Win32 binary package into a directory specified by the PATH environment variable or one of the system directories of your Windows® installation.
and the user comments:
thierry.bo wrote: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.
and
VIeo wrote:be safe.. downloadable goes in the system folder (as iconv.dll, not renamed) and php_iconv.dll goes in the extensions folder (unrenamed also).
Mac
Posted: Wed Jan 14, 2004 5:35 am
by pelegk2
i seee
but where do i find the
iconv.dll to d/l?
Posted: Wed Jan 14, 2004 5:36 am
by twigletmac
Did you read the page I linked to and the user comments? The answers can all be yours by RTFM and STFW.
Mac
Posted: Wed Jan 14, 2004 5:43 am
by pelegk2
ok now it works after puting it in the system32 folder
thanks alot!