[mapserver-dev] Re: [mapserver-users] msConvertWideStringToUTF8(): General error message. Encoding not supported by libiconv (UTF-16LE)

Daniel Morissette dmorissette at mapgears.com
Thu Jul 23 11:40:09 EDT 2009


OOpps... wrong list, sorry, I meant to sent this to the -users list... 
which I just did.

Daniel Morissette wrote:
> (Taking this back on the list)
> 
> Your problem is very likely related to the use of multiple iconv copies 
> on your system... that LD_PRELOAD doesn't smell good. Do you absolutely 
> need to do that? Why not use the iconv that comes with glibc?
> 
> You wrote that "iconv -l" lists UTF-16LE ... but are you sure that it is 
> reporting the info for the same version of iconv that your mapserv 
> binary is using?
> 
> The only advice I can provide is make sure you *compile* your MapServer 
> with the same copy of iconv that you run with, and that this copy of 
> iconv does include UTF-16LE support.
> 
> Daniel
> 
> 
> 
> Mr. Bic Phuong wrote:
>> Dear Daniel,
>>
>> Thanks for your reply,
>>
>> 1. To prevent iconv() in glibc 2.5 I have set this line:
>>
>> export LD_PRELOAD=/usr/local/lib/preloadable_libiconv.so
>>
>> in /root/.bash_profile and
>>
>> SetEnv LD_PRELOAD /usr/local/lib/preloadable_libiconv.so
>>
>> in /etc/httpd/conf/httpd.conf
>>
>> and reboot the server but this didn't solve the problem
>>
>> 2. I found that UTF-16LE is listed in the result of the command "iconv 
>> -l"
>>
>> 3. I manual configure and make the file mapserv for first RHEL 5.3. 
>> Then I manual configure and make the file mapserv for second RHEL 5.3. 
>> I do not copy pre-compiled mapserv.
>>
>> I hope you can help me to solve this problem Daniel !
>>
>> --- On *Thu, 7/23/09, Daniel Morissette /<dmorissette at mapgears.com>/* 
>> wrote:
>>
>>
>>     From: Daniel Morissette <dmorissette at mapgears.com>
>>     Subject: Re: [mapserver-users] msConvertWideStringToUTF8(): General
>>     error message. Encoding not supported by libiconv (UTF-16LE)
>>     To: mapserver-users at lists.osgeo.org
>>     Date: Thursday, July 23, 2009, 7:48 PM
>>
>>     Mr. Bic Phuong wrote:
>>      > I hope someone can solve this problem, our project is delayed by
>>     this error.
>>      > the GetFeatureInfo function is failed:
>>      >
>>      > msConvertWideStringToUTF8(): General error message. Encoding not
>>     supported
>>      > by libiconv (UTF-16LE)
>>      >
>>
>>     This error message is telling you that the libiconv library, which
>>     is used by MapServer for encoding conversions, does not support
>>     UTF-16LE on that server.
>>
>>     You need to find out which libiconv your Mapserver was compiled with
>>     and then make sure that copy of libiconv has support for the
>>     UTF-16LE encoding. You can list the encodings supported by libiconv
>>     on a given system using "iconv -l"... make sure UTF-16LE is there.
>>
>>
>>      >
>>      > this error accured when I'm setting up a webgis on the second 
>> Red Hat
>>      > Enterprise Linux (RHEL) 5.3, on the first RHEL 5.3, 
>> GetFeatureInfo is
>>      > working perfect.
>>      >
>>
>>     Look for a difference between the two servers related to libiconv.
>>
>>     Daniel
>>     -- Daniel Morissette
>>     http://www.mapgears.com/
>>     _______________________________________________
>>     mapserver-users mailing list
>>     mapserver-users at lists.osgeo.org
>>     </mc/compose?to=mapserver-users at lists.osgeo.org>
>>     http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
> 
> 


-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-dev mailing list