Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   wrong accented characters shown inside search results (http://forum.bytesforall.com/showthread.php?t=12787)

Pillozzo Feb 14, 2011 06:32 AM

wrong accented characters shown inside search results
 
I am using the 3.6.1 version of Atahualpa in WP 3.0.5.; db charset is utf8_general_ci.
When the "à" character (ANSI 224) is contained in an article:

- if you search (in the default WP search box) just for the "à" character (or for a word including it) search returns nothing.;
- if you search for another word included in the same page than "à", it returns a question mark instead of each "à" character present inside the shown text.

Please note that this behaviour is shown only in Atahualpa.

I solved this problem replacing all occurrences of

"preg_split("/\s+/"

with

"preg_split("/\s+/u"

in the code inside "functions.php", particularly in "function bfa_wp_trim_excerpt($text)".

Flynn Feb 20, 2011 05:36 AM

Thanks, added for 3.6.5


All times are GMT -6. The time now is 01:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.