bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] libiconv problem with non-breaking space


From: Boris Burtin
Subject: [bug-gnu-libiconv] libiconv problem with non-breaking space
Date: Wed, 14 Oct 2009 14:39:58 -0700 (PDT)

I'm having a problem with converting UTF-8 text that contains a non-breaking space character (unicode 00a0) to iso-8859-1.  I'm calling iconv from a PHP script with this line of code:

$text = iconv("UTF-8", "iso-8859-1//IGNORE", $text);

I thought that the //IGNORE flag would cause iconv to ignore characters that it can't handle, but instead I get this error:

Error 8: iconv() [<a href=''>function.iconv</a>]: Detected an illegal character in input string

Is this a bug in libiconv, or is there something I need to do to massage the string before converting it?

Thanks in advance,

Boris Burtin
Zimbra


reply via email to

[Prev in Thread] Current Thread [Next in Thread]