A free components from skorp.royy.net

A free components from skorp.royy.net

Download arrow Forum
Joomla
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Problems with french accent (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Problems with french accent
#213
Gilles (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Problems with french accent 3 Months, 2 Weeks ago Karma: 0  
Hi everybody !

First, i'm happy to use this component ! Easy to setup, easy to understand it, easy to use it !!!!

I'm french user, and of course I have a french website in Joomla!

I found 2 problems :
1/
In french we have this sentence : "Je vais à l'école" (I'm going to school)
In control panel i have this settings :
Minimum word length : 3
When i build the list, i get the "à" word ! Of course this world is too little, and should not be on the list, but I see that in the "length" column, i have "8" for this word !
I have the same problem with "méthode" word (method). I obtain "14" and not "7"...



2/
I put some word with and without accent in the blacklist (for example "méthode", "voir" (see)). When I build the list, the is no effect for the accent words... I get "méthode" word...
I already try lot of couple settings (preg_replace and lower_case options).

Thank for your answers (and the fix future ! )
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#214
skorp (Moderator)
Moderator
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Problems with french accent 3 Months, 2 Weeks ago Karma: 0  
Hi!

This patch
File Attachment:
File Name: com_rafcloud_2-cddb3a482ebc0f66e84cdb3beef9d302.zip
File Size: 3407
should solve problems with utf encoding.
It's for version 2.0.1 but you can also use it with v 2.0.0.

Best regards
Skorp
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#215
Gilles (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Problems with french accent 3 Months, 2 Weeks ago Karma: 0  
Hello,

Thank for your fix, but it does not correct my problem.
I do some investigation and I found that :

The content plugin get the words in this tables :
content
sections
catégories

I openned phpmyadmin and I look this tables and I see for the "à" word.
I notice that in columns : title, title_alias and name, the "à" is save as an "à"... So no problem for that !
But in the description, introtext and fulltext columns are in HTML format. So the "à" word is encoded in HTML format which is : à

So when the plugin give this word, it see a word with a length of "8"...

I'm not expert in php, but for fix that you should put in the plugin content file a function decodeHTML() which it translate &agrave symbol in the "à" word :

For example :
$stag.= " ".decodeHTML($row->fulltext);

I don't know if there is a native fonction in PHP for that...
Be careful ! There is other accent in french :
é -> &eacute
è -> &egrave
And also note that you should decode only HTML content... Not the titles...

I hope that it help you !
Gilles
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Joomla Templates by Joomlashack