Edit Answer not working in Firefox (some AJAX/XML Problem)
Discussion
Anonymous
-
2013-05-29
I had the same problem on Ubuntu 13.4 running PHP 5.4.9. The problem is that htmlspecialchars($data) in the function sendHTMLMangledIntoXML in lib/http/sendXML.php on line 101 returns an empty string, probably because it encounters a wrongly-encoded character.
Line 101 should be replaced with something like the following:
The htmlspecialchars method is called in many places, maybe all of these should be replaced.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2013-05-29
There seems to be a more general problem with umlauts in German templates and translation files. Most of the time they are not encoded in utf-8, which means that parts of affected pages aren't rendered.
This affects menu items, tabs, and everything fetched dynamically.
I have spent half an hour adding "ENT_QUOTES | ENT_SUBSTITUTE" to most calls of htmlspecialchars. Now I can at least see all elements I am supposed to see, albeit partially garbled.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had the same problem on Ubuntu 13.4 running PHP 5.4.9. The problem is that htmlspecialchars($data) in the function sendHTMLMangledIntoXML in lib/http/sendXML.php on line 101 returns an empty string, probably because it encounters a wrongly-encoded character.
Line 101 should be replaced with something like the following:
sendXMLContainer('content', htmlspecialchars($data, ENT_QUOTES | ENT_SUBSTITUTE, 'utf-8'), $attributes);
The htmlspecialchars method is called in many places, maybe all of these should be replaced.
There seems to be a more general problem with umlauts in German templates and translation files. Most of the time they are not encoded in utf-8, which means that parts of affected pages aren't rendered.
This affects menu items, tabs, and everything fetched dynamically.
I have spent half an hour adding "ENT_QUOTES | ENT_SUBSTITUTE" to most calls of htmlspecialchars. Now I can at least see all elements I am supposed to see, albeit partially garbled.
I have the same problem using the German backend; any news here?