Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Other BFA WordPress Themes »

Page title meta tag encoding issue


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Jul 27, 2009, 12:46 AM
pretenuomului
 
1 posts · Jul 2009
Page title meta tag encoding issue

This MAY be considered a bug, but it's actually a simple encoding issue I've discovered and thought I'd share.

Config:

Wordpress 2.8.2
Atahualpa 3.4.1 with

"Use bytes for all SEO options?"-enabled
"Meta Title Tag format" = `Page Title`

Symptoms:

If any of the strings that would become part of page title meta tag (post name, category name, search name etc.) contains non-ASCII chars, the output is messed up like so:
Code:
'ţeavă' becomes 'Å£eavÄ�'
This DOES NOT occur when switching back to the default theme.

Solution:

In bfa_meta_tags.php, the htmlentities() call on lines 75 and 83 needs a the third parameter specified as 'UTF-8':
Code:
$bfa_ata_page_title = htmlentities(single_cat_title('', false),ENT_QUOTES, 'UTF-8');
$bfa_ata_page_title = htmlentities(wp_specialchars($s),ENT_QUOTES, 'UTF-8');
This will solve the issue.

Hope this helps those using the theme in languages using funny chars. Perhaps it would be a good idea to fix this directly in the official release.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
SEO options spoil my meta tag chars encoding PetrosPolonos Atahualpa 3 Wordpress theme 5 Aug 14, 2009 05:22 AM
Logo h1 Tag -- And Post Title Color nathat Post-Kicker, -Byline & -Footer 1 Jul 21, 2009 07:19 AM
[SOLVED] 3.4: Confused: body title versus meta title jankph Atahualpa 3 Wordpress theme 0 Jul 12, 2009 03:30 AM
Only show page title, not excerpts or full, on tag pages. Alphanon Excerpts, Read more, Pagination 2 Mar 3, 2009 10:18 AM


All times are GMT -6. The time now is 09:13 AM.


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