In-Reply-To: <[EMAIL PROTECTED]>
"Guillaume SELLIER" <[EMAIL PROTECTED]> wrote on Mon, 07 Mar 2005 
15:37:53 +0000

> I get a problem with my ht://Dig 3.1.6 with single quote. The problem 
> occurs when we search a string containing a single quote, like " 
> l'alarme ". In fact, htsearch encode special characters and change this 
> string in " l&#39;alarme ". The characters # is in the 
> valid_punctuation attribute so it's deleted. The character ; is 
> considered as a end of word, then htsearch cut the string in a boolean 
> expression " l39 and alarme". And on the numbered links to other pages, 
> the & char is encoded in HTML, and give "l&amp;39..." in the url, then 
> the boolean expression become more and more crazy with the & character 
> as we click on numbers.
> I worked with the file bad_words for the moment (put l39, etc), but the 
> reminder of searched string in the others result pages is ugly.
> 
> Does someone had same problem and know how to resolve it ? Can we force 
> htsearch to keep the real searched string and not encode it ?
> For information I use the attribute locale: fr_FR, and I'm on a RH ES 3.

Vous avez trois probl�mes differentes - pardon, je continuerai en Anglais:

1) I am not sure why "'" is getting converted to "&39;" - is it not part 
of the standard character set for the locale FR_fr? 

2) Indexing of &entities; - I just don't have this problem. Search 
www.londonfreelance.org for "Soci�t�"... 

3) The display of &entities; - the last time I checked, the ht://Dig is 
still waiting for a volunteer to put a massive amount of work into making 
the whole thing work with Unicode. It seems very, very unlikely that there 
will be a temporary fix before then.

Mike



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to