Incorrectly display encoding in TicketZoomView

Moderator: crythias

Post Reply
agnik
Znuny newbie
Posts: 1
Joined: 13 May 2010, 13:39
Znuny Version: 4.27

Incorrectly display encoding in TicketZoomView

Post by agnik »

Hi!
sorry for mistakes, English is not my native language

My configuration OTRS 2.4.7 + IIS7 + Oracle 9.2.6
Default charset UTF-8

Incorrectly display encoding in AgentTicketZoom and CustomerTicketZoom.
Same text in AgentTicketQueue dislplayed correctly.
If in AgentTicketZoom.dtl insert $QData{Body} text displayed correctly.

Are there any thoughts on this?

Thank you,
Nikitinsky Andrey
You do not have the required permissions to view the files attached to this post.
meronbar
Znuny newbie
Posts: 13
Joined: 18 May 2010, 08:56
Znuny Version: 2.4.7

Re: Incorrectly display encoding in TicketZoomView

Post by meronbar »

Additional info
I have two OTRS servers with absolutely the same code (folder copyed with replacement few rows in config)
One on WinXP Rus display tickets correctly and other on Win2000ServEng have the same problem in ticket body.
OTRS 2.4.7 Apache 2 and StrawberryPerl
meronbar
Znuny newbie
Posts: 13
Joined: 18 May 2010, 08:56
Znuny Version: 2.4.7

Re: Incorrectly display encoding in TicketZoomView

Post by meronbar »

I am digg a little in code ...
Look like problem come from AgentTicketAttachment.pm
Actually ticket text stored in article_attachment table and displayed in AgentTicketZoom.dtl by this row:

<iframe width="100%" frameborder="0" border="0" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" style="width: 100%;" id="iframe$QData{"ArticleID"}" onload="IframeAutoHeight('iframe$QData{"ArticleID"}');" src="$Env{"Baselink"}Action=AgentTicketAttachment&Subaction=HTMLView&ArticleID=$QData{"ArticleID"}&FileID=$QData{"AttachmentIDOfHTMLBody"}"></iframe>

Also i found that general files attached to ticked doesn't downloaded too. Look like it is related problems. Reason to think about AgentTicketAttachment.pm as source of problem - system which display correctly unicode also correctly send general attached files. And those who cant display unicode correctly, also cant send stored attachments.

Can someone who understand "how this thing work" better then my, check AgentTicketAttachment.pm?
meronbar
Znuny newbie
Posts: 13
Joined: 18 May 2010, 08:56
Znuny Version: 2.4.7

Re: Incorrectly display encoding in TicketZoomView

Post by meronbar »

Make another one install on W2k3 Eng server. the same problem here.
Look like i should host OTRS on localised XP Ru and wait OTRS 3 :(
meronbar
Znuny newbie
Posts: 13
Joined: 18 May 2010, 08:56
Znuny Version: 2.4.7

Re: Incorrectly display encoding in TicketZoomView

Post by meronbar »

Well, after a lot of variants tested look like it is related to Perl version
StrawberryPerl 5.10.0.6 work OK but later versions have this problem
With 5.10.1.2 and 5.12.0.1 AgentTicketAttachment.pm failed
My Perl language skill too pure to made additional digg :(
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Incorrectly display encoding in TicketZoomView

Post by crythias »

I think it may be related to the font? I've been seeing other posts on stuff like this, but I can't be 100%.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
meronbar
Znuny newbie
Posts: 13
Joined: 18 May 2010, 08:56
Znuny Version: 2.4.7

Re: Incorrectly display encoding in TicketZoomView

Post by meronbar »

No, this is about processing binary data (UTF8 and attached files both come through AgentTicketAttachment.pm)
They stored correctly (after downgrade perl version old tickets become "fixed") but with new versions of perl send to browser damaged in some way :(
Post Reply