Warning: htmlspecialchars() problem

Please report bugs here!

Moderator: Thorsten

Post Reply
desp
Posts: 3
Joined: Thu Mar 29, 2007 3:21 pm
Location: Ostrava, CZ

Warning: htmlspecialchars() problem

Post by desp »

Hi Everybody,

I've got this error, when try 'Export as XML-File'

Warning: htmlspecialchars(): charset `windows-1250' not supported, assuming iso-8859-1 in /www/doc/www.xtel.cz/www/faq/inc/functions.php on line 1310
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.xtel.cz/www/faq/inc/functions.php:1310) in /www/doc/www.xtel.cz/www/faq/xml.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.xtel.cz/www/faq/inc/functions.php:1310) in /www/doc/www.xtel.cz/www/faq/xml.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.xtel.cz/www/faq/inc/functions.php:1310) in /www/doc/www.xtel.cz/www/faq/xml.php on line 36



phpMyFAQ 1.6.10
Server Software
Apache
PHP Version
PHP 4.4.2-1build1_a24
Register Globals
on
Safe Mode
on
Database Client Version
4.0.24
Database Server Version
5.0.22-Debian_0ubuntu6.06.3-log
Webserver Interface
APACHE2HANDLER

Czech user interface.

Any suggestions to help?
Thank you.

Petr
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which language file do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
desp
Posts: 3
Joined: Thu Mar 29, 2007 3:21 pm
Location: Ostrava, CZ

Post by desp »

Thorsten wrote:Hi,

which language file do you use?

bye
Thorsten
Hi Thorsten,
I'm using Czech language. language_cs.php

e.g.: http://www.xtel.cz/faq/5_2_cs.html

Petr
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you change line 1310 in inc/functions.php from

Code: Select all

$xml_content = trim(htmlspecialchars(wordwrap($xml_content, 60), ENT_NOQUOTES, $PMF_LANG['metaCharset']));
to

Code: Select all

$xml_content = trim(PMF_htmlentities(wordwrap($xml_content, 60), ENT_QUOTES, $PMF_LANG['metaCharset']));
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
desp
Posts: 3
Joined: Thu Mar 29, 2007 3:21 pm
Location: Ostrava, CZ

Post by desp »

Thorsten wrote:Hi,

can you change line 1310 in inc/functions.php from
-----
Thorsten
Yes, works fine. :)
Thank you very much for your quick replay & help.

Best regards,
Petr
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the fix will be included in phpMyFAQ 1.6.11 and 2.0.0-beta2, too. If you like you could update the czech translation. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply