Found problem on iconv library

life4what

Verified User
Joined
Oct 1, 2009
Messages
9
I found a problem during the directadmin installation.

##Before the DA install,
the iconv --version show belows:
iconv (GNU libc) 2.5

##After the DA install,
the iconv --version show belows:
iconv (GNU libiconv 1.13)

The problem I got is I previously using iconv inside the php scripts.
It works everyting utf8, gb2312, gbk, big5 conversion.

After DA install,
gb2312 is not working anywmore. It didnt convert the correct coding.

I tried to rebuild DA php with the previous iconv lib.
so that the phpinfo shows version 2.5 again. But the iconv in the php scripts are still haveing the same problem.

Anyone can give me some advise??

I am new to DA but start feeling its inconvenient...
 
Btw,

I also tried to remove the --with-iconv extension in the php and recompile it using DA custom build.
phpinfo shows the extension is removed.

However, I found I still can use iconv function in the php scripts.
But, it sill having the previous problems I mentioned.


...
 
Hello,

Which OS version are you using?

I'm not able to find a version 2.5 of iconv on the net anywhere, so I'm not sure where the 2.5 is coming from.

This is the reporsitory of iconv data:
http://ftp.gnu.org/gnu/libiconv/

this is their main page:
http://www.gnu.org/software/libiconv/

with the "latest development sources" avaiable here:
http://savannah.gnu.org/projects/libiconv/

And all state that 1.13.1 is the latest version they have.
I cannot find a version 2.5 anywhere, perhaps I'm missing something.

As for certain encodings not working, it may just be a compile flag that was, or was not set in the iconv compile.

Also, search your system.. you might still have your previous version (2.5), but the DA version is in a path of higher priority, eg:

/usr/local/bin/iconv (ours)

vs

/usr/bin/iconv (previous)

John
 
It is so interesting...

I am using CentOS version 5.2...

The iconv is already there after installed the OS.

I google the iconv 2.5 version. Similar comments from below...
http://htmlpurifier.org/phorum/read.php?3,1456,1458,quote=1

Just cannot use back the iconv2.5 version inside PHP scripts after the DA installed anyway.....

:(

However, I found another extranel scritps to do the encoding. It is enough for my application.

But, I still have interest to know whether I can use back the iconv...because I enjoy using the iconv before for its convenience.....

Maybe DA admin can tell me how can I using the iconv from /usr/bin/iconv instead of /usr/local/bin/iconv/ in my www PHP scripts..
 
Sorry for refreshing this subject, but I have some issues with iconv also:

I found that on DA Centos server we have

Code:
iconv --version
iconv (GNU libiconv 1.13)
Copyright (C) 2000-2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Bruno Haible.

and on the other (non DA Debian) we have:

Code:
iconv --version
iconv (GNU libc) 2.7
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.
 
I keep on receiving errors:

Notice: iconv(): Wrong charset, conversion from `utf8' to `iso-8859-2' is not allowed in /home/someuser/domains/domain.tld/public_html/inc/somefile.php on line 98

I thought it was relevant to iconv library version mentioned in this post, but then I checked that ModSecurity is throwing errors:

ModSecurity: Warning. Operator GE matched 0 at TX:outbound_anomaly_score. [file "/etc/modsecurity2/base_rules/modsecurity_crs_60_correlation.conf"] [line "38"] [msg "Outbound Anomaly Score Exceeded (score 0): PHP Information Leakage"] [hostname "domain.tld"] [uri "/pdf/somefile.php"] [unique_id "TbE3gbIhMJsAAD-EtIMAAAAI"]

So I suppose iconv version is not an issue for me. Anyway I cleared out that there are 2 versions of iconv.
 
Back
Top