6.0.0-beta1
7/29/25

[#1943] character set problems while writing to conf.php
Summary character set problems while writing to conf.php
Queue Horde Framework Packages
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester komanek (at) natur (dot) cuni (dot) cz
Created 05/10/2005 (7385 days ago)
Due
Updated 05/12/2005 (7383 days ago)
Assigned
Resolved 05/10/2005 (7385 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/12/2005 08:42:45 AM Jan Schneider Comment #4 Reply to this comment
But this is *not* officially supported by the PHP engine, so the 
results are unpredictable. The only way this would work is using the 
mbstring.script_encoding setting, but that doesn't help at run time.
05/12/2005 08:03:41 AM komanek (at) natur (dot) cuni (dot) cz Comment #3 Reply to this comment
While the problem are only string values, not preferences names, it 
should be possible to store them in any charset. I have no problems 
with utf-8 strings in my own php apps. The only problem I see is to 
choose utf-8 for all or to give a user another preference to set for 
other charsets. But I think that utf-8 should be fine, because it is 
backward compatible with ascii (i.e. iso-8859-1, too) for us-characters.

--David
05/10/2005 12:02:29 PM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
This can't be changed unfortunately, because all configuration files 
are PHP scripts, and PHP scripts need to be in ISO-8859-1 charset.
05/10/2005 11:46:55 AM komanek (at) natur (dot) cuni (dot) cz Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ character set problems while writing to conf.php
Queue ⇒ Horde Framework Packages
Reply to this comment
Generating conf.php (both Horde's own or app's one), strings written 
into this file are forced to be converted to iso-8859-1 charset. This 
breaks configurations which contain national characters in various 
text strings. Text values on the screen are correct until re-read from 
the conf.php file. (Other character conversions like those of 
preferences written to the sql backend are correct).



Tested on Horde 3.0.4 with PHP 4.3.11, Apache 2.0.50, problem with 
both MSIE and Firefox browsers.

Saved Queries