Subscribe via
Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]
Print
Author Topic: Local problem for едц  (Read 3370 times)
dagenstankar
Newbie
*
Posts: 6


View Profile Email
« on: July 30, 2009, 01:07:47 AM »

Hi

I wanted to use this plugin on my swedish blog but got a problem.
The signs едц that we use in swedish is not showing correct. The will be scrambled into "åäö"

what should I do?
Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #1 on: August 04, 2009, 03:41:40 PM »

I'm not sure where the signs are showing up.  Can you post a screenshot?
Logged

dagenstankar
Newbie
*
Posts: 6


View Profile Email
« Reply #2 on: August 05, 2009, 04:45:11 AM »

Sure

The signs come up on the normal page when it's displayed for the user.
On the screnshot I have inserted едц after Hello there! so all is not translated thats why it's in english with strange signs :)

Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #3 on: August 05, 2009, 04:49:13 AM »

Looks like there is some encoding issue in either saving or displaying the characters.  Can you export your WPGB options and attach it to this forum thread?
Logged

dagenstankar
Newbie
*
Posts: 6


View Profile Email
« Reply #4 on: August 05, 2009, 05:06:19 AM »

Sure here is the file.

Just a notice. In the file it looks strange but in WP-admin it looks correct.
« Last Edit: August 05, 2009, 05:27:47 AM by dagenstankar » Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #5 on: August 05, 2009, 10:46:22 PM »

Hm... I see "едц" in the exported settings file.  It seems to me like the characters are being saved properly, but not displayed properly.  What is your site URL?
Logged

dagenstankar
Newbie
*
Posts: 6


View Profile Email
« Reply #6 on: August 06, 2009, 09:19:52 AM »

Can you see едц in the file? Because I can't see that. (Line 36)

At the moment I have this on my testing site (not live)
http://sun.bbs-crew.myftp.org/?p=961
Logged

dagenstankar
Newbie
*
Posts: 6


View Profile Email
« Reply #7 on: August 10, 2009, 05:38:23 AM »

Hi Thaya

Did you find any solution to this? I realy want to use this plugin on my site.
If you need any input just ask and I fix it.
Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #8 on: August 10, 2009, 05:05:49 PM »

I think I know what's wrong.  Can you try modifying wp-greet-box.php:public_request_handler()?

Add:

      header( 'Content-type: text/html; charset=utf-8' );

after the 'if-statement', so that the function looks like this:

      if(isset($_GET['wpgb_public_action'])){
        if ( strtolower($_GET['wpgb_public_action']) == 'query' ) {
          header( 'Content-type: text/html; charset=utf-8' );
          echo $this->find_greet_html(urldecode($_GET['referrer']),$_GET['visit_delta'],$_GET['closed'],urldecode($_GET['url']),urldecode($_GET['title']));
        }
        exit();
      }
Logged

dagenstankar
Newbie
*
Posts: 6


View Profile Email
« Reply #9 on: August 11, 2009, 09:40:19 AM »

It works perfekt!  :)

Thanks alot for the help
Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #10 on: August 12, 2009, 09:16:32 AM »

You're welcome.  Tips are appreciated :).
Logged

Pages: [1]
Print
Jump to: