Truncate faq text

Please report bugs here!

Moderator: Thorsten

Post Reply
zilog80
Posts: 6
Joined: Tue Jan 17, 2006 12:16 pm

Truncate faq text

Post by zilog80 »

HI all!

my phpmyfaq is "phpMyFAQ 1.5.6" under mysql

during modify a FAQ the text its truncate

the occur, is character of type "à" or "ò" or alredy "ì" etc..

its a bug?
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which MySQL version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
zilog80
Posts: 6
Joined: Tue Jan 17, 2006 12:16 pm

Post by zilog80 »

mysql Ver 14.7 Distrib 4.1.14, for pc-linux-gnu (i686) using readline 5.0

other test:

modify a exist faq with phpmyadmin
insert a crazy characters "èòà" :)
open browser and view FAQ with phpmyfaq and characters transformed in "ÚòÃ"

if inserted with phpmyadmin string not truncate and rapresented with another charset to phpmyfaq

if inserted with phpmyfaq string store to mysql truncated
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I tested it and it worked for me. :-(

Which PHP do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
zilog80
Posts: 6
Joined: Tue Jan 17, 2006 12:16 pm

Post by zilog80 »

:roll:

PHP Version 4.4.0-pl1-gentoo

Server version: Apache/2.0.54
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which language do you use? Doesn't it work with Firefox or IE?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
zilog80
Posts: 6
Joined: Tue Jan 17, 2006 12:16 pm

Post by zilog80 »

language?

d'ont work with alll browser
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

we think it's a charset problem so we need to know which browser on which OS with which language in phpMyFAQ do you use.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
zilog80
Posts: 6
Joined: Tue Jan 17, 2006 12:16 pm

Post by zilog80 »

i'm tested phpmyfaq with windows 2000 windows xp (iexplorer and firefox)

the language is italian
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can I test it on your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

It seems to be an Apache configuration issue

Post by matteo »

zilog80 wrote:the language is italian
Hi,
you can try one of these two solutions below:
a. comment out this line in your Apache configuration file:

Code: Select all

grep AddDefaultCharset /etc/httpd/conf/httpd.conf
#    AddDefaultCharset utf-8
b. modify the charset value for the italian language from "iso-8859-15" to "utf-8". Find below the key for the charset:

Code: Select all

grep Charset [PATH_TO_PMFINSTALL]/lang/language_it.php
$PMF_LANG["metaCharset"] = "iso-8859-15";
I regularly use PMF both in Italian and English and I'd suggest you to apply (a.)
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
zilog80
Posts: 6
Joined: Tue Jan 17, 2006 12:16 pm

Post by zilog80 »

YESS!

im change:

httpd.conf

Code: Select all

AddDefaultCharset UTF-8
AND..

language_it.php

Code: Select all

$PMF_LANG["metaCharset"] = "UTF-8";

and NOW WORKING!! :D
Post Reply