[SOLVED] GS 3.1 beta - encoding issues - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: GS Development Testing - (alpha/beta) (http://get-simple.info/forums/forumdisplay.php?fid=14) +--- Thread: [SOLVED] GS 3.1 beta - encoding issues (/showthread.php?tid=2708) |
[SOLVED] GS 3.1 beta - encoding issues - Carlos - 2012-02-04 EDIT: This has been fixed in r650 --------------- GS 3.1 beta has some encoding problems in the header's meta description and keywords. Example: Code: á ä Code: &aacute; &auml; Code: á ä I've suggested this patch to the encode_quotes() function: Edit admin/inc/basic.php, line 471, Replace: Code: $text = htmlspecialchars($text, ENT_QUOTES); Code: $text = htmlspecialchars($text, ENT_QUOTES, 'UTF-8', false); This works for me, tested with the latest r646 featured beta. Could you please test this? [SOLVED] GS 3.1 beta - encoding issues - Carlos - 2012-02-04 Another encoding issue that is still happening (we discussed in other threads but hasn't been fixed), this one with the menu (generated by get_navigation()). Problems with backslashes, double quotes... I suggest you try this fix: Edit admin/inc/theme_functions.php, line 613. Replace: Code: $menu .= '<li class="'. $classes .'"><a href="'. find_url($page['url'],$page['parent']) . '" title="'. $page['title'] .'">'.$page['menu'].'</a></li>'."\n"; Code: $menu .= '<li class="'. $classes .'"><a href="'. find_url($page['url'],$page['parent']) . '" title="'. encode_quotes(cl($page['title'])) .'">'.strip_decode($page['menu']).'</a></li>'."\n"; Note that you also have to do my previous suggested patch (to basic.php) Please people test and tell me if it works for you... [SOLVED] GS 3.1 beta - encoding issues - n00dles101 - 2012-02-11 I've commited these to the SVN, hopefully thats the end of the encoding issues. Also fixes the error reporting problem you reported n teh issue tracker... Thanks Carlos... |