Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Characters are not displayed properly with Keywords Sniffer Rate Topic: -----

#1 User is offline   admin Icon

  • Administrator
  • PipPipPip
  • Group: Root Admin
  • Posts: 7,794
  • Joined: 25-January 07

Posted 02 September 2008 - 06:05 AM

Google uses UTF-8 encoding, and as such encodes their HTTP Referrer header using UTF-8. Unless your site also uses UTF-8, this means any special characters in the URL will not be displayed properly as a result (including the keywords, which are what we are most concerned with).

To fix the characters not displaying properly in IPB, you can use IPB's character set converter tool.

In the skin, find

$this->tagcontent = $startMeUp->tagcloudKeywords();


and add after

$this->tagcontent = $this->ipsclass->txt_convert_charsets( $startMeUp->tagcloudKeywords(100), 'utf-8', 'xxxx' );


Replacing xxxx with your site's character set.
0

#2 User is offline   yacenty Icon

  • Advanced Member
  • PipPipPip
  • Group: Customers
  • Posts: 722
  • Joined: 14-July 07
  • Gender:Male
  • Location:Wrocław / Poland

Posted 01 October 2008 - 05:04 PM

on the forums it's working nice but on the keyword page it still shows strange characters, could You also provide a fix?
AgroFoto.pl - First Polish Agriculture Gallery
AgroModele.pl - First Polish Die-Cast Models Community
0

#3 User is offline   admin Icon

  • Administrator
  • PipPipPip
  • Group: Root Admin
  • Posts: 7,794
  • Joined: 25-January 07

Posted 03 October 2008 - 07:17 PM

Things have been getting hectic again for me (that's never good) but if I don't reply within a couple days bump this to remind me.
0

#4 User is offline   TXM Icon

  • Advanced Member
  • PipPipPip
  • Group: Customers
  • Posts: 70
  • Joined: 02-January 09
  • Gender:Male
  • Location:StraSbourg-FR

Posted 14 January 2009 - 06:37 AM

Thanks admin, this code has fixed the title of the keywords but on the page there is still current problem but i think with new clicks this will fix automatically.
Posted Image

and
my IPB+CSEO site:
Posted Image
0

#5 User is offline   yacenty Icon

  • Advanced Member
  • PipPipPip
  • Group: Customers
  • Posts: 722
  • Joined: 14-July 07
  • Gender:Male
  • Location:Wrocław / Poland

Posted 18 January 2009 - 03:04 AM

admin, any fix for this?
AgroFoto.pl - First Polish Agriculture Gallery
AgroModele.pl - First Polish Die-Cast Models Community
0

#6 User is offline   admin Icon

  • Administrator
  • PipPipPip
  • Group: Root Admin
  • Posts: 7,794
  • Joined: 25-January 07

Posted 18 January 2009 - 09:41 PM

Basically, you'd have to use a similar fix. iconv or mb_convert should work, for instance, for most character sets.
0

#7 User is offline   yacenty Icon

  • Advanced Member
  • PipPipPip
  • Group: Customers
  • Posts: 722
  • Joined: 14-July 07
  • Gender:Male
  • Location:Wrocław / Poland

Posted 19 January 2009 - 01:49 AM

I tried to add iconv (iso8859-2, utf-8, {$keyword}) instead of {$keyword}
but this crashed site - no keyword were shown at all.
AgroFoto.pl - First Polish Agriculture Gallery
AgroModele.pl - First Polish Die-Cast Models Community
0

#8 User is offline   admin Icon

  • Administrator
  • PipPipPip
  • Group: Root Admin
  • Posts: 7,794
  • Joined: 25-January 07

Posted 19 January 2009 - 08:20 PM

Maybe iconv isn't working so well on your server? You could try using mb_convert or recode php functions instead to see if they work for you at all. Alternatively, you could try using the character set conversion class included in IPB (it's in ips_kernel/ folder).
0

#9 User is offline   matma4u Icon

  • Newbie
  • Pip
  • Group: Customers
  • Posts: 6
  • Joined: 12-July 09
  • Gender:Male

Posted 21 September 2009 - 11:06 PM

View Postyacenty, on 19 January 2009 - 02:49 AM, said:

I tried to add iconv (iso8859-2, utf-8, {$keyword}) instead of {$keyword}
but this crashed site - no keyword were shown at all.


Open file: keywords_template.php
Find:
function outputTagLinks( $keywords='', $keywordRecords=array() )
{


After add (for example if you want converts text from utf8 to iso8859-2):
$keywords=iconv ('utf-8', 'iso8859-2', $keywords);

Save and close.
0

#10 User is offline   admin Icon

  • Administrator
  • PipPipPip
  • Group: Root Admin
  • Posts: 7,794
  • Joined: 25-January 07

Posted 23 September 2009 - 07:22 PM

You have to be sure you have iconv installed of course to use it.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users