Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] p01-contact GREEK LANGUAGE
#1
My p01 contact form is working good.

But about my language (it's greek)... when I get an email from my site (e.g. via Outlook ), on header field <name> is n't displaying correct (I see something like:
&Icirc@linux2.grserver.gr; &plusmn@linux2.grserver.gr; .... ( i suppose it's one for each letter)

note that everything else is displaying correctly. (subject, message e.t.c.)

I made a small change in p01-contact.php

Instead of this
$tmp = htmlentities($tmp, ENT_QUOTES, 'UTF-8'); (line 271)
I 've put this
$tmp = htmlspecialchars($tmp, ENT_QUOTES, 'UTF-8');

now the senders <name> is apearing like

ΞΞ1/2ΞΞΞΟΟΞΞΞΞ (but for some reason every other field appears correctly)

I think that it's about utf-8 encoding in greek language. CAN ANYONE HELP ???

http://getsimple.tetepoulidis.gr (test site)
Reply
#2
In GETSIMPLEPATH/plugins/p01-contact/p01-contact.php file I put after
Code:
line  717  if(empty($name)) $name = $this->lang('nofrom');
this
Code:
$name = '=?utf-8?B?' . base64_encode($name) . '?=';if(empty($name)) $name = $this->lang('nofrom');
and it fixed my problem (now in Outlook 'name' appears correct and 'subject' and other fields appear correctly in utf-8
Reply




Users browsing this thread: 1 Guest(s)