[pmwiki-users] Charset problem, notify.php or pmform.php
    Petko Yotov 
    5ko at 5ko.fr
       
    Wed Feb  7 10:43:34 PST 2024
    
    
  
Is the problem in the Subject: header, or in the message body?
In the message source (headers and envelope), does it actually say the 
content-type is "iso-8859-1"?
I suspect it does not, and your email client, or webmail client, is 
configured to consider unset encodings as "iso-8859-1".
You would have something like this in config.php:
   # Fix for Subject header, if international characters:
   $EnableNotifySubjectEncode = 1;
   $EnablePmFormMailSubjectEncode = 1;
   # Fix for message body:
   $NotifyHeaders = "Content-Type: text/plain; charset=utf-8\r\n";
   $PmFormMailHeaders = "Content-Type: text/plain; charset=utf-8\r\n";
Maybe we should enable these in scripts/xlpage-utf8.php ?
Petko
On 07/02/2024 19:06, Martin Cuno wrote:
> Hello everyone,
> 
> my PmWiki runs on UTF-8. Everything is clean, except: for emails from
> notify.php or from PmForm forms, the emails get the incorrect
> information charset="iso-8859-1", so that the German umlauts are
> displayed incorrectly (depending on the email program).
> 
> What's wrong with that? The main script pmwiki.php is probably the
> only possible place where "iso-8859-1" comes from; but that should
> probably be overwritten by xlpage-utf-8.php?
> 
> Greetings and thanks!
> 
> Martin
    
    
More information about the pmwiki-users
mailing list