Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Change before few days, displaying chars

Quote Reply
Change before few days, displaying chars
Hi,

Today I found that my webpage isn't displaying right chars from my language. I've setup charset to windows-1250 few years ago and never changed it!

And today I found that chars aren't displayed ok. Now in templates not in information from database.

Did some part of GLinks changed maybe recently? Some update or something like that?

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Have you done an upgrade? Shouldn't have made a different - but you never know.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
No, I didn't do any update as I remember...

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Is it only happening in one browser, or does it do the same in IE/Chrome/FF ?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
I've try serveral version of IE and Firefox on several friends computers.

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Mmm, not sure what else to suggest - sorry.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Nothing has changed glinks wise. Your database may have been upgraded.

Adrian
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
DeadMan wrote:
Hi,

charset to windows-1250

Just for the testing purpose change charset to <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> and see if it works.

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] Change before few days, displaying chars In reply to
I've try this. But whatever encoding I put, all chars are the same. Nothing changed.

Regards.

UnReal Network
Quote Reply
Re: [brewt] Change before few days, displaying chars In reply to
brewt wrote:
Nothing has changed glinks wise. Your database may have been upgraded.

Problem isn't in database because it wasn't upgraded and also, text from templates (which are not in database) is displaying wrong!

UnReal Network
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
Ok. I found the problem. After two days of searching. Problem is in global <%poll%> which grabs poll from GForum.

This is global:

sub {
use LWP::Simple;
my $poll = get("http://forum.unreal.hr/cgi-bin/gforum.cgi?do=poll_ssi;poll=latest");
return $poll;
}

Don't know where is problem because no new poll is been added in GForum and before everything was ok with the poll which is on now.

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Mmm , you sure? What happens if you change:

return $poll;

..to

return "TEST";

..do you still have the issue?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
I also found that putting <!-- --> comments in for pulling poll from Gforum doesn't work. I need to delete whole code to charset display correctly.

Any ideas?

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
What exactly is the output of $poll?

Before the "return", try adding this:

print GT::CGI::html_escape($poll);

..and see what it prints out in the browser. It must be something in the HTML of the poll that is actually doing something.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
This is output of poll when I put code on web:

Code:
<form action="http://forum.unreal.hr/cgi-bin/gforum.cgi" method="get"> <input type="hidden" name="poll" value="1"> <input type="hidden" name="poll_id" value="16"> <input type="hidden" name="forum_id" value="17"> <input type="hidden" name="poll_type" value="0"> <input type="hidden" name="post_id" value="387"> <table> <tr><td colspan="2"><b>Zanima li vas besplatna email adresa @unreal.hr?</b></td></tr> <tr> <td width="2%"> <input type="radio" name="poll_answer_id" value="61"> </td> <td>Da</td> </tr> <tr> <td width="2%"> <input type="radio" name="poll_answer_id" value="62"> </td> <td>Ne</td> </tr> <tr> <td width="2%"> <input type="radio" name="poll_answer_id" value="63"> </td> <td>Nisam siguran</td> </tr> <tr> <td colspan="2"> <input type="submit" value="Pošalji" name="do=poll_vote;redo=post_view_flat;post=387;poll=results;"> <a href="http://forum.unreal.hr/cgi-bin/gforum.cgi?do=post_view_flat;post=387;poll=results">Rezultati</a> (118 glasova) </td> </tr> </table> </form>

Can't find anything that isn't right in html...

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Mmm,I don't see anything there that would cause the char-set issues :(

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
Andy wrote:
Mmm , you sure? What happens if you change:

return $poll;

..to

return "TEST";

..do you still have the issue?

Cheers

When I put this, then it's ok....

I got TEST where poll options should be...

UnReal Network
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
Andy wrote:
Mmm,I don't see anything there that would cause the char-set issues :(

Cheers


Yes. This drives me crazy also! Mad

UnReal Network
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
Ok. I finally found problem although still don't know why is that.

Problem was in this value

Code:
value="Pošalji"

If I change this to english in example "Vote" then charset on whole page is ok. Weird and strange. Don't know.

Probem is that this was before and didn't have any problem with it.

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Mmm, maybe try encoding it? Not sure how that would convert - but stuff like &#1234;

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change before few days, displaying chars In reply to
Andy wrote:
Mmm, maybe try encoding it? Not sure how that would convert - but stuff like &#1234;

Cheers

Yes, it's working with encoding - &#353; is code.

But still don't know what happen in this last days...

UnReal Network
Quote Reply
Re: [DeadMan] Change before few days, displaying chars In reply to
Ah ok cool - not sure why it wasn't working either - but at least it does now using &#353; Cool

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!