AgentTicketPhone.tt line 328: Malformed UTF-8 character

Moderator: crythias

Post Reply
flying2021
Znuny newbie
Posts: 4
Joined: 26 Mar 2021, 17:27
Znuny Version: 6.0.30
Real Name: Aeg

AgentTicketPhone.tt line 328: Malformed UTF-8 character

Post by flying2021 »

I am turning on the template options in the AgentTicketPhone.tt, i got it worket but when I edited the text and input some special characters I get the following error.
I already put accept-charset="UTF-8" in the end of the <form syntax. Any ideas how to fix this?

"file error - parse error - AgentTicketPhone.tt line 328: Malformed UTF-8 character (fatal) at /usr/lib64/perl5/vendor_perl/Template/Directive.pm line 155."

# example template for customizations, see hidden form at the end of the file
<label>[% Translate("Atvik") | html %]:</label>
<div class="Field" >
<button type="button" onclick="$('#Adgerdir').submit()" value="[% Translate("til") | html %]">[% Translate("Adgerdir") | html %]</button>
</div>


# example template form for customizations
<form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" id="Adgerdir" accept-charset="UTF-8">
<input type="hidden" name="_charset_">
<input type="hidden" name="Action" value="[% Env("Action") %]"/>
<input type="hidden" name="Subaction" value="StoreNew"/>
<input type="hidden" name="FormID" value="[% Data.FormID | html %]"/>
<input type="hidden" name="ExpandCustomerName" value="1"/>
<input type="hidden" name="Subject" value=""/>
<input type="hidden" name="Body" value="Name:
Product: óáþ
Comment:"/>
</form>
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: AgentTicketPhone.tt line 328: Malformed UTF-8 character

Post by reneeb »

The "accept-charset" attribute is only relevant to tell browsers which characters they should accept. The error you see is because you added some non-utf8-character in your changes to the template. Is your editor aware of utf-8 (what's the language settings of your editor)?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply