In this board you can talk about general questions about phpMyFAQ
Moderator: Thorsten
msdq
Posts: 13 Joined: Thu Apr 29, 2004 7:27 pm
Post
by msdq » Fri Jul 02, 2004 9:52 pm
Hello
I have installed version 1.3.10 in Arabic language
When I run search for any word it result the following
Code: Select all
Warning: Compilation failed: invalid UTF-8 string at offset 22 in /mypath/inc/functions.php on line 1016
Warning: Compilation failed: invalid UTF-8 string at offset 22 in /mypath/inc/functions.php on line 1017
What is that could be for, and wht to do ...!!?
Thanks ..
Thorsten
Posts: 15725 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Sat Jul 03, 2004 7:06 am
Hi,
this should be fixed in the next release 1.3.15!
If you want the fix posted here, just answer me.
bye
Thorsten
msdq
Posts: 13 Joined: Thu Apr 29, 2004 7:27 pm
Post
by msdq » Sat Jul 03, 2004 7:20 am
I will appreciate if you post the fix here …
Regards,
Thorsten
Posts: 15725 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Sat Jul 03, 2004 7:22 am
Hi,
the two lines 1016 and 1017 have to be changed into this:
Code: Select all
$thema = preg_replace('/(((href|src)="[^"]*)?'.$begriff.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $thema);
$content = preg_replace('/(((href|src)="[^"]*)?'.$begriff.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $content);
bye
Thorsten
msdq
Posts: 13 Joined: Thu Apr 29, 2004 7:27 pm
Post
by msdq » Sat Jul 03, 2004 9:10 am
It works fine now ,
But when I click on the search results (url) I got this message ,,
Code: Select all
Warning: Compilation failed: invalid UTF-8 string at offset 22 in /mypath/artikel.php on line 89
Regards ,,
Thorsten
Posts: 15725 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Sat Jul 03, 2004 4:01 pm
Hi,
you have to change the line 89 into this:
Code: Select all
$content = preg_replace('/(((href|src)="[^"]*)?'.$highlight.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $content);
bye
Thorsten
msdq
Posts: 13 Joined: Thu Apr 29, 2004 7:27 pm
Post
by msdq » Sat Jul 03, 2004 6:30 pm
Thank you,
great Job
Regards,