Go Back   Pligg Forum > Pligg Development > Bug Report
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2007, 09:25 PM
khun khun is offline
New Pligger
 
Join Date: Sep 2007
Posts: 10
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 4 Times in 2 Posts
Character problem

Hello again,

I am using pligg in Turkish content website. All content is working fine however; Navigation bar is not showing words correct. It shows garbage chars.

Example:

When I click Admin and click "User Management" it shows all chars correctly in Turkish. However if i click Admin and click "Category Management" I see garbage chars instead of Turkish chars.

Is there a way to fix this? I also see garbage char when i make search...

When I say Navigation bar I mean the bar which says "Pligg 9.8 Homepage >> Admin >> User Management"

Thank you
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 09-14-2007, 07:52 AM
khun khun is offline
New Pligger
 
Join Date: Sep 2007
Posts: 10
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 4 Times in 2 Posts
Guys i need to solve this problem. Please somebody help
Reply With Quote
  #3 (permalink)  
Old 09-14-2007, 08:07 AM
tbones tbones is offline
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,074
Downloads: 26
Uploads: 0
Thanks: 53
Thanked 25 Times in 23 Posts
Try to switch to ISO-8859-9 as character set and edit the old posts manually.

Further information based on german special characters: special characters (ä,ü,ö,ß) problem

P.S.: The navigation bar contains the so called breadcrumb variables.
Reply With Quote
  #4 (permalink)  
Old 09-14-2007, 10:39 AM
antyuser antyuser is offline
New Pligger
 
Join Date: Sep 2007
Posts: 2
Downloads: 8
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by khun View Post
....
When I say Navigation bar I mean the bar which says "Pligg 9.8 Homepage >> Admin >> User Management"

Thank you
maybe this

libs/html1.php
-------------------------
function do_sidebar($var_smarty) {
// show the categories in the sidebar
global $db, $dblang, $globals, $the_cats, $navwhere;

// fix for 'undefined index' errors
+++++> //if(!isset($navwhere['text4'])){$navwhere['text4'] = '';}else{$navwhere['text4'] = htmlentities($navwhere['text4']);}
+++++>//if(!isset($navwhere['text3'])){$navwhere['text3'] = '';}else{$navwhere['text3'] = htmlentities($navwhere['text3']);}
+++++>//if(!isset($navwhere['text2'])){$navwhere['text2'] = '';}else{$navwhere['text2'] = htmlentities($navwhere['text2']);}
+++++>//if(!isset($navwhere['text1'])){$navwhere['text1'] = '';}else{$navwhere['text1'] = htmlentities($navwhere['text1']);}
if(!isset($navwhere['link4'])){$navwhere['link4'] = '';}
if(!isset($navwhere['link3'])){$navwhere['link3'] = '';}
if(!isset($navwhere['link2'])){$navwhere['link2'] = '';}
if(!isset($navwhere['link1'])){$navwhere['link1'] = '';}
$var_smarty->assign('navbar_where', $navwhere);

$var_smarty->assign('body_args', '');

// fix for 'undefined index' errors
Reply With Quote
  #5 (permalink)  
Old 09-14-2007, 01:22 PM
khun khun is offline
New Pligger
 
Join Date: Sep 2007
Posts: 10
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 4 Times in 2 Posts
changing it didn't help either..
Reply With Quote
  #6 (permalink)  
Old 09-14-2007, 01:54 PM
khun khun is offline
New Pligger
 
Join Date: Sep 2007
Posts: 10
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 4 Times in 2 Posts
Quote:
Originally Posted by antyuser View Post
maybe this

libs/html1.php
-------------------------
function do_sidebar($var_smarty) {
// show the categories in the sidebar
global $db, $dblang, $globals, $the_cats, $navwhere;

// fix for 'undefined index' errors
+++++> //if(!isset($navwhere['text4'])){$navwhere['text4'] = '';}else{$navwhere['text4'] = htmlentities($navwhere['text4']);}
+++++>//if(!isset($navwhere['text3'])){$navwhere['text3'] = '';}else{$navwhere['text3'] = htmlentities($navwhere['text3']);}
+++++>//if(!isset($navwhere['text2'])){$navwhere['text2'] = '';}else{$navwhere['text2'] = htmlentities($navwhere['text2']);}
+++++>//if(!isset($navwhere['text1'])){$navwhere['text1'] = '';}else{$navwhere['text1'] = htmlentities($navwhere['text1']);}
if(!isset($navwhere['link4'])){$navwhere['link4'] = '';}
if(!isset($navwhere['link3'])){$navwhere['link3'] = '';}
if(!isset($navwhere['link2'])){$navwhere['link2'] = '';}
if(!isset($navwhere['link1'])){$navwhere['link1'] = '';}
$var_smarty->assign('navbar_where', $navwhere);

$var_smarty->assign('body_args', '');

// fix for 'undefined index' errors
what do i have to change here? do i need to do anything?
Reply With Quote
  #7 (permalink)  
Old 09-15-2007, 09:31 AM
yuanchi yuanchi is offline
New Pligger
 
Join Date: Sep 2007
Posts: 1
Downloads: 3
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
I fix it, And then It WORKS, AND NO GARBAGE CHARS

libs/html1.php
-------------------------
function do_sidebar($var_smarty) {
// show the categories in the sidebar
global $db, $dblang, $globals, $the_cats, $navwhere;

// fix for 'undefined index' errors
+++++> //if(!isset($navwhere['text4'])){$navwhere['text4'] = '';}else{$navwhere['text4'] = htmlspecialchars($navwhere['text4']);}
+++++>//if(!isset($navwhere['text3'])){$navwhere['text3'] = '';}else{$navwhere['text3'] = htmlspecialchars($navwhere['text3']);}
+++++>//if(!isset($navwhere['text2'])){$navwhere['text2'] = '';}else{$navwhere['text2'] = htmlspecialchars($navwhere['text2']);}
+++++>//if(!isset($navwhere['text1'])){$navwhere['text1'] = '';}else{$navwhere['text1'] = htmlspecialchars($navwhere['text1']);}
if(!isset($navwhere['link4'])){$navwhere['link4'] = '';}
if(!isset($navwhere['link3'])){$navwhere['link3'] = '';}
if(!isset($navwhere['link2'])){$navwhere['link2'] = '';}
if(!isset($navwhere['link1'])){$navwhere['link1'] = '';}
$var_smarty->assign('navbar_where', $navwhere);

$var_smarty->assign('body_args', '');

// fix for 'undefined index' errors
Reply With Quote
  #8 (permalink)  
Old 10-01-2007, 03:31 PM
skazzz skazzz is offline
New Pligger
 
Join Date: Mar 2007
Posts: 4
Downloads: 50
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
thanks ...it help me...
Reply With Quote
  #9 (permalink)  
Old 12-25-2007, 02:42 AM
wwwSENSERELYcom's Avatar
wwwSENSERELYcom wwwSENSERELYcom is offline
Casual Pligger
 
Join Date: May 2007
Location: Tianjin, China
Posts: 73
Downloads: 3
Uploads: 0
Thanks: 2
Thanked 2 Times in 1 Post
Thanks, replacing htmlentities by htmlspecialchars did the trick.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird problem with seeing images SteveF General Help 6 08-12-2007 07:59 AM
Hungarian special character problem boomo General Help 8 06-07-2007 08:25 AM
Character Encoding Problem whith RSS Import from Google News sunstardude General Help 1 06-04-2007 09:33 PM
URL Method 2 problem with strange character TrailofDead General Help 2 03-29-2007 12:07 PM
Problem form doesn't work! nabil Bug Report 1 04-01-2006 07:53 PM


LinkBacks Enabled by vBSEO 3.0.0