Problem with accents
Posted Dec 04, 2011 - 12:49 PM:
HelloPaul
I have a problemwithaccents intwoplaces in thescript.
1 -Adding asecond categoryinthe additionor modificationof a link 2-Quick search of titleof a linkand also in theadvanced search.Allresearch hasthe problemofaccents.
I installedin English andItranslatedt he filedefault.lng into French, Idid not needthe English versionbecause mysite isin French only. Alltemplatesare alsotranslated into French.
What isstrange isthat the other partiesoperate withouterror withaccents.
The problem isonly in the2ndcolumn of theselection ofasecondary category,the main categorywill be displayednormally.
All the researchalso have thisproblem, thecollationof thedatabase issooriginalutf8_unicode_ci
I tested an english-only site and didn't have the accents problem on autocomplete, so that wasn't the issue. Maybe the database tables aren't utf-8 and require conversion, but there should be a notice saying so if that were the case. Checking.
It looks like the accented characters fail whenever the charset header isn't set. It was set in end.php, but some files like the autocomplete don't use end.php, so I've moved it to includes/prestart.php. Is everything correct now?
Comments on Problem with accents
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
Posted Dec 04, 2011 - 12:49 PM:
Hello Paul
I have a problem with accents in two places in the script.
1 - Adding a second category in the addition or modification of a link
2 - Quick search of title of a link and also in the advanced search. All research has the problem of accents.
View all 4 screenshots
Thank you in advance.
Cordially.
Attached Files:
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This is probably because you've got an english-only installation. Is there a reason you didn't do multilingual?
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
I installed in English and I translatedt he file default.lng into French, I did not need the English version because my site is in French only. All templates are also translated into French.
What is strange is that the other parties operate without error with accents.
The problem is only in the 2nd column of the selection of a secondary category, the main category will be displayed normally.
All the research also have this problem, the collation of the database is so original utf8_unicode_ci
Attached Files:
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I tested an english-only site and didn't have the accents problem on autocomplete, so that wasn't the issue. Maybe the database tables aren't utf-8 and require conversion, but there should be a notice saying so if that were the case. Checking.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It looks like the accented characters fail whenever the charset header isn't set. It was set in end.php, but some files like the autocomplete don't use end.php, so I've moved it to includes/prestart.php. Is everything correct now?
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
Paul Yes, everything is perfect now with this file you uploaded.
A big thank you for your help and your work.
Cordially.