[pmwiki-users] Mail form without UTF8

123_dirk 123_dirk at web.de
Tue Jan 3 13:14:03 CST 2012


|It is working if you add| html_entity_decode.
||

pmform.php:

$msgtext = htmlentities($msgtext , ENT_NOQUOTES, 'utf-8');  -->  UTF8--> 
HTML
$msgtext = html_entity_decode($msgtext 
);                                 --> HTML --> DE Chars
||

Maybe there is an better way, but for now i will use this way.

Dirk
||
||
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.
>>
>> Dirk
>>
>> Am 30.12.2011 21:41, schrieb 123_dirk:
>>> Hi,
>>>
>>> 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...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20120103/cc5416ad/attachment.html>


More information about the pmwiki-users mailing list