01436: German Umlaut characters do not work anymore

Summary: German Umlaut characters do not work anymore
Created: 2019-01-09 23:50
Status: Closed
Category: Bug
From: Ralph?
Assigned:
Priority: 4
Version: 2.2.112
OS: PHP 7.3

Description: When using versions of PHP after 7.1, I get the following error message:

Warning: Cannot modify header information - headers already sent by (output started at /home/...../pmwiki.php:497) in /home/...../pmwiki.php on line 1317

In addition to that my German Umlaut characters do not work anymore.

Ralph? January 09, 2019, at 11:50 PM

Is this the only warning message or does it also show the message from 01435? --Petko January 10, 2019, at 10:55 AM

Hi Petko, both issues could be linked and appeared together. I was not able to tell both things apart, or seperate them somehow, but did not want to create a "collection" ticket that may have several causes and ways to fix. I was also not sure which of both tickets caused the umlaut issue.Ralph? January 10, 2019, at 16:20 PM CET

This message "Cannot modify header information" appears every time the output starts before all headers are done, for example when a warning appears like in the other ticket. Alone it can happen rarely, as explained at PmWiki.Troubleshooting. As for you the 2 appear at the same time, I suspect the other ticket will fix this one too. --Petko January 10, 2019, at 03:26 PM

Hi Petko, after a skin update the deprecated-message and the warning have disappeared. However I still have problems with the support for German umlaut characters. Any idea for that? Ralph? January 10, 2019, at 17:03 PM CET

Is it an existing wiki or a new one? Do you have problems with international characters inside the page text, or only when the characters are in the page name? What do you see instead of the characters, are they missing or you see something else? Does it happen with uppercase or lowercase characters? What is the operating system on your server? Can you enable diagnostics in config.php $EnableDiag = 1; and show me the wiki, ideally with a WikiSandbox open for editing? --Petko January 11, 2019, at 12:13 AM

It is rather historic. Let me see what I can set up. This might take a few days, I will get back to you about it. Thanks! Ralph? January 11, 2019, at 15:30 PM CET

Okay, I tried to track the issue down: The umlaut characters are already broken on file level. All of the special characters (äöüÄÖÜß) are stored as "�". They were okay before, but I can not figure out when or by what they were changed. I can fix this manually. A clean install of the wiki plus addon and skin also worked fine. From my point of view we can fix this issue. If you want to investigate further, please let me know what I can provide. Ralph? January 12, 2019, at 15:04 PM CET

The only ways I can imagine this happening is either the browser submitting wrong characters (page encoding mismatch) but then the wrong characters would be visible after the page is saved; or some program (like backup recovery) editing the text content of the wiki.d page files or converting them to a different/wrong encoding. Or even your text editor opening the page files with a wrong encoding. If your wiki is fixed, let's wait to see if someone else will report a similar issue. --Petko January 13, 2019, at 06:59 AM