[pmwiki-users] Mail form without UTF8
123_dirk at web.de
Tue Jan 3 13:14:03 CST 2012
|It is working if you add| html_entity_decode.
$msgtext = htmlentities($msgtext , ENT_NOQUOTES, 'utf-8'); --> UTF8-->
$msgtext = html_entity_decode($msgtext
); --> HTML --> DE Chars
Maybe there is an better way, but for now i will use this way.
Am 02.01.2012 23:52, schrieb John Rankin:
>> I have a German Page and Users can send a mail from my page.
>> In German we have characters like "äüö" or in HTML äüö.
>> But because of the UTF-8, the mails are with encodes chars.
>> Am 30.12.2011 21:41, schrieb 123_dirk:
>>> i'm using the standard mailform but the text in the mail is UTF8 coded.
>>> Is it possible to disable UTF8 just for the Mailtext?
> One approach may be to transform the utf8-encoded characters into the
> corresponding html entities:
> $text = htmlentities($text, ENT_NOQUOTES, 'utf-8');
> where $text is a string that contains the mail message
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users