Page 1 of 1

UTF 8 language files on Hesk 2.0

Posted: Sun Feb 08, 2009 7:33 pm
by young_gun
First off all thanks for all the great work on developing Hesk! It's a great and professional script.

I was starting to use Hesk 0.94 when 2.0 came out... im Portuguese and i was translating and testing Hesk on my local pc.

On 0.94 i was unable to use utf8 encoded language file but i could use email .txt files on utf8 without any issues.

On 2.0 i found that i now can use utf8 language files (it wont work on iso-8859 anymore), but i cant use utf8 .txt email files...

It was not a big problem if sometimes on Hesk the language files and emails are mixed when using variables that are found on the db to send some emails like %%SITE_TITLE%% or even sometimes when a costumer uses a special character like an "~" on the subject for certain ticket.

Is somehow possible to use the same encoding on both files? Maybe utf8 on .txt email language files..

I don't know if it's the better way to explain this and if you could understand my bad English...

Thanks!

Posted: Sun Feb 08, 2009 8:25 pm
by Klemen
You can try something like this:
viewtopic.php?t=2012
Just make sure you use UTF-8 instead of iso-8859-1

Posted: Mon Feb 09, 2009 1:12 pm
by young_gun
Thanks for the reply Klemen!

In the topic you linked i didn't understand witch files i have to change...

Could you please help-me a bit more!

Thanks once again!

Posted: Mon Feb 09, 2009 3:14 pm
by Klemen
Try reading all my replies in that topic again. My first reply there says
inside submit_ticket.php, reply_ticket.php and admin_reply_ticket.php:
Go ahead, follow those instructions and come back if you have any problems.

Posted: Mon Feb 09, 2009 9:33 pm
by young_gun
Thanks Klemen!

Sorry for my second post but the topic is a bit confusing...

I have this working ok with your instructions from that topic but in your first post if i understood well you said that the code should be after the @mail line and some posts after you say that the code should be before!

The write way is before the @mail line as you say on the 6ยบ post from that topic!

It works ok now with everything in utf-8 !

Thanks once again for your great work with your scripts!

Posted: Tue Feb 10, 2009 6:19 pm
by Klemen
Glad you got it working. And don't feel offended because I'm not posting solutions right away, I'm trying to learn forum users to first try their best to solve it themselves :wink: