Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pear i18n "iconv() detected an illegal character" error

Status
Not open for further replies.

jacksondorado

IS-IT--Management
Apr 12, 2001
135
US
Using Pear i18n support for internationalization, I get this error in the apache error_log file

iconv() [<a href='function.iconv'>function.iconv</a>]: Detected an illegal character in input string in /usr/share/pear/Translation2/Container/xml.php on line 235

I have found suggestions to add //IGNORE or //TRANSLIT to the output charset declaration. My problem is that the output charset that causes the error is this function:

$source_encoding = strtoupper($data['languages'][$lang]['encoding']);

If I switch the strtoupper function with an explicit charset//IGNORE, I don't get an error anymore.
I don't know how to append //IGNORE or //TRANSLIT to an array object in the function. Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top