Page 1 of 1

Problems with Cyrilic encoding

Posted: Mon Jul 11, 2005 9:27 pm
by largan
Script URL: http://62.204.144.127/help_deck/heck/
Version of script: 0.93
Version of PHP: 4.3.8
Hosting company: testing server
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

- WINDOWS-1251
- CP1251
- ISO-8859-5
- cyrilic

Write your message below:

Hello there,

I have translated the language file into bulgarian language (a cyrilic one). Also I have ranslated the email files.
Everything seems to work fine exept the notification emails. They are not displayed correctly. I have tried to set a cyrilic encoding but with no luck.
I tried with:

$hesklang['ENCODING']=

- WINDOWS-1251
- CP1251
- ISO-8859-5

Unfortunately non of these encodings work properly.

here is is a sample of the email received:

+++++++++
????????? Bogdan,

?????? ???? ???????? ?? ??? ???????? "test 1"

???? ?? ?????? ????????? ???:
http://62.204.144.127/help_deck/heck/ti ... resh=50039


*?? ??????????? ?? ???? E-MAIL*
???? ? ??????????? e-mail ???????? ?? ????????? ?? ?????????. ?? ??????????? ?? ???? e-mail ?????? ??? ???? ?? ??????? ????? ???????!

? ????????,

Help Deck
http://62.204.144.127/help_deck/heck
+++++++++

So I was wondering ou you have any idea what could cause that.

Next days I will send you the language pack, so you can added to the site.

Thank you in advance,
- Trayko Stoilov

----------------------------
www.stigma-design.com

Posted: Mon Jul 11, 2005 11:00 pm
by Klemen
Hmm, not sure, will see if I can figure anything out...

Regards

Posted: Tue Jul 12, 2005 6:43 am
by largan
Hi Klemen,

I really appreciate your fast response.
Please, let me know if you need any other information to provide you with.

Regrds,
Trayko

Posted: Tue Jul 12, 2005 10:30 am
by Klemen
Hello Trayko,

I've made a few tests and perhaps this could be the solution:
http://www.phpjunkyard.com/extras/hesk_encoding.zip

The above file has only edited the e-mail that CUSTOMER receives after submitting a ticket. If it works I will change others too.

Test it like this:

1. upload that file to your server
2. set encoding in language file to 1st encoding type
3. submit a ticket and check the e-mail

if that doesn't work do this for all encoding types you tried:
4. change encoding
5. REFRESH the "submit_ticket.php" page and submit a new ticket
6. check e-mail which is sent to customer

Let me know if any of the encoding types works now for the e-mail to customer. And don't forget to REFRESH the submit_ticket.php page each time you change encoding before submitting a new ticket!

Regards

Posted: Tue Jul 12, 2005 11:55 am
by largan
Hi again,

I tried the new file but the results were the same.
I have created the email files from scrach (not translated).
Also, I tried to harcode the charset in "submit_ticket.php" file, with no luck.

Also I tried to change the content-type in the file you sent me to be text/html... :(

the tests were performed with all the encodings I know that supports in a way or another cyrilic. I refreshed the submit_ticket.php every time. Eve used a different PC.

Any ideas are appreciated.
Thanks,
Trayko

Posted: Tue Jul 12, 2005 12:22 pm
by Klemen
Hi,

To behonest I have no idea what could be wrong. Have you perhaps got some script that sends e-mail and supports cyrilic so I can have a look?

Also, you have probably been editing e-mails in notepad.exe, right? Open one e-mail, then go to "Edit > Font settings" and see what charset you have set there (probably in a field called "alphabet").

Regards

Posted: Tue Jul 12, 2005 12:28 pm
by Klemen
By the way: I just posted two test tickets in your script, is this the submit_ticket.php I sent you? Doesn't look like it because some data is missing in header?

http://62.204.144.127/help_deck/heck/submit_ticket.php

Klemen

Posted: Tue Jul 12, 2005 12:39 pm
by largan
Sorry,
the email files were the one that I made on scrack.

You can try it now. It is with the translated files.
How do you want me to send you the script that supports cyrilic ?

Thanks
Trayko

Posted: Tue Jul 12, 2005 12:50 pm
by largan
Actually thats right,

That is the file you sent me.! I told you were talking about the email files.

I replaced once again.

Posted: Tue Jul 12, 2005 1:05 pm
by Klemen
Hi,

Please send the translation to info@phpjunkyardNOSPAM.com (remove "NOSPAM"). As promised you will also get a license.

I will be testing your language file to see if I can figure out how to make the e-mails work proerply.

Regards

Posted: Tue Jul 12, 2005 1:25 pm
by largan
Sure,

I will send them right away.
Thank you for all your help.

Trayko