Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] GS 3.1 beta - encoding issues
Author Message
Carlos Offline
GS Freak

Posts: 1,374
Joined: Mar 2010
2012-02-04 19:47:26
[SOLVED] GS 3.1 beta - encoding issues
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:
á ä
is encoded as (look at the page's source code):
Code:
á ä
instead of:
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);
by:
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?

- News Manager 2.4.2 + additional plugins
- Other GS plugins
(This post was last modified: 2012-02-13 05:09:57 by fotothink.)
Visit this user's website Find all posts by this user Quote this message in a reply
Carlos Offline
GS Freak

Posts: 1,374
Joined: Mar 2010
2012-02-04 20:22:24
[SOLVED] GS 3.1 beta - encoding issues
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";
by:
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";
(What we've done here is changing $page['title'] to encode_quotes(cl($page['title'])) and $page['menu'] to strip_decode($page['menu']))

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...

- News Manager 2.4.2 + additional plugins
- Other GS plugins
Visit this user's website Find all posts by this user Quote this message in a reply
n00dles101 Offline
Administrator

Posts: 974
Joined: Aug 2009
2012-02-11 08:31:49
[SOLVED] GS 3.1 beta - encoding issues
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...

My Github Repos: Github
Website: DigiMute
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)

Generate Leads from Documents vCard Hosting