Finally I got around the problem and I use the function I had created in the egafd script for the search I use stringreplace in the text sent to parsepage (HTML) and I put the code_page at 65001 because my file psf is in utf-8.
It seems that it works, remains to complete the list of my accented characters in the function.
A very practical little utility to know the encoding code used on a web page : NUniversalCharDet