Re: [PHP-DEV] why is iconv not working as expected?

[email protected] (Derick Rethans) Fri, 7 Mar 2003 16:56:57 +0100 (CET)
Newsgroups php.dev
Message-ID <[email protected]>
Hello,

please forward user questions to the [email protected]
mailinglist, this list is for development _OF_ PHP, not development
_with_ PHP.

Derick


On Fri, 7 Mar 2003, Fil wrote:

> 
> Hi there,
> 
> I'm puzzled by the iconv() call from php. When I test it with cyrillic 
> text, in the utf-8 or windows-1251 charsets, or when I try with iranian 
> text, the following php call
> 
> <?php
> 	echo @iconv($charset, 'ASCII//TRANSLIT', $texte))
> ?>
> 
> brings me only question marks "???????".
> 
> What I don't understand is that lynx parses those same texts very well, 
> and it is (I think?) based on the same iconv() library...
> 
> 
> What can I do to either tune my system or do the right call to iconv()? 
> The aim is to have a nice search engine for SPIP, a GPL'd CMS, so the 
> most portable answer will be the best ;)
> 
> (I'm not on the php-dev list, so please Cc: me.)
> 
> -- Fil
> 
> 
> 

-- 
                                                Stop mad cowboy disease!
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
-------------------------------------------------------------------------