Hello,

I would be very pleased if somebody could help me.

I'm trying to encode some strings to UTF-8. The problem comes when using utf8_encode function: every call to this function stops PHP and the full page from loading. I've tried using iconv function, but it requires to know the input encoding so I must call mb_detect_encoding function which also stops PHP. If I use iconv function writing manually some input encoding (and maybe bad guessed) works fine. mb_convert_encoding function is also not working.

I'm using PHP 5.2.9 and I also have another server with the same PHP version, and it doesn't have this problem.

Thank you very much in advance for any help.

    What do you mean by "stops PHP" ? Are there error messages generated in the PHP error log? Or perhaps in your webserver's error log?

    If the PHP process/thread actually terminates unexpectedly, then it sounds like you've got a bad install of PHP.

      I took a look to the apache log and I found that this functions were not found. Searching through the Internet I read that they are installed with some kind of XML libraries which I specifically disabled during the installation. I don't know what XML has to do with encoding...

      Thank you very much for your help 🙂

        Glad I could help; don't forget to mark this thread resolved using the link on the Thread Tools menu above.

        EDIT: Disregard that - I'm blind, apparently. :o

          Write a Reply...