Umlaut issue with 2.7.7 on Fedora 8 with UTF-8 (resolved) [message #41099] |
Wed, 21 May 2008 20:55 |
Tiger
Messages: 1 Registered: May 2008
Karma: 0
|
Junior Member |
|
|
Hello,
I just did a new installation of FUDforum 2.7.7 on an also freshly installed Fedora 8. The default charset for Fedora 8 is UTF-8 but the german localisation is partly in ISO-8859-1. This results in broken german umlauts on some pages i.e. in the profile settings.
As a quick fix I sent the thm/whatever/i18n/german/msg file through gnu recode:
mv msg msg.iso
recode ISO-8859-1..UTF-8 < msg.iso > msg
Maybe this will help if anyone gets the same problem.
Tiger
|
|
|
|
|
Re: Umlaut issue with 2.7.7 on Fedora 8 with UTF-8 (resolved) [message #158297 is a reply to message #41099] |
Sun, 15 February 2009 15:48 |
JanRei
Messages: 361 Registered: October 2005 Location: Germany
Karma: 0
|
Senior Member Contributing Core Developer Translator |
|
|
I also had to add AddDefaultCharset ISO-8859-1 to my httpd.conf to correct German umlauts. Hopefully this will not turn out to be a widespread problem since not everybody can adjust the server settings.
By the way, also this forum here seems to have some problems with it. For example, the month name März (in Englisch: March) is mangled: M�rz
[Updated on: Sun, 15 February 2009 15:49] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Umlaut issue with 2.7.7 on Fedora 8 with UTF-8 (resolved) [message #158544 is a reply to message #158513] |
Tue, 03 March 2009 06:23 |
|
naudefj
Messages: 3771 Registered: December 2004
Karma: 28
|
Senior Member Administrator Core Developer |
|
|
Here is an interim patch for Windows installations:
Index: compiler.inc
===================================================================
RCS file: /forum21/install/forum_data/include/compiler.inc,v
retrieving revision 1.97
diff -u -r1.97 compiler.inc
--- compiler.inc 29 Jan 2009 18:37:17 -0000 1.97
+++ compiler.inc 3 Mar 2009 06:13:06 -0000
@@ -185,9 +185,9 @@
break;
case 'DATE':
if ($name[0] != '!') {
- $ret .= '\'.strftime("'.ltrim(substr($str, ++$ds, ($e - $ds))).'", $'.$name.').\'';
+ $ret .= '\'.utf8_encode(strftime("'.ltrim(substr($str, ++$ds, ($e - $ds))).'", $'.$name.')).\'';
} else {
- $ret .= '\'.strftime("'.ltrim(substr($str, ++$ds, ($e - $ds))).'", '.substr($name,1).').\'';
+ $ret .= '\'.utf8_encode(strftime("'.ltrim(substr($str, ++$ds, ($e - $ds))).'", '.substr($name,1).')).\'';
}
break;
case 'TEMPLATE':
|
|
|
|
|
|
Re: Umlaut issue with 2.7.7 on Fedora 8 with UTF-8 (resolved) [message #158783 is a reply to message #158782] |
Sun, 22 March 2009 07:09 |
TheName
Messages: 5 Registered: March 2009
Karma: 0
|
Junior Member |
|
|
Thanx for the Information.
After I upgraded the forum, I inserted the following:
case 'DATE':
if ($name[0] != '!') {
$ret .= '\'.utf8_encode(strftime("'.ltrim(substr($str, ++$ds, ($e - $ds))).'", $'.$name.')).\'';
} else {
$ret .= '\'.utf8_encode(strftime("'.ltrim(substr($str, ++$ds, ($e - $ds))).'", '.substr($name,1).')).\'';
}
break;
into "\Include\compiler.inc", but the date ist still not shown correctly. Are there any more steps necessary?
[Updated on: Sun, 22 March 2009 07:19] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Umlaut issue with 2.7.7 on Fedora 8 with UTF-8 (resolved) [message #159191 is a reply to message #41099] |
Mon, 11 May 2009 22:23 |
JanRei
Messages: 361 Registered: October 2005 Location: Germany
Karma: 0
|
Senior Member Contributing Core Developer Translator |
|
|
Sorry, I wasn't aware that FUDforum can send multipart messages and that they need to be tested as well. Please try the new attached patch. Maybe it still doesn't work in all cases, but it should be better.
I don't know exactly what we should do with mb_send_mail(). If I understand it correctly this function only needs to be used with multibyte charsets like Japanese etc. However, we are using UTF-8 for all languages now which should also be possible with mail().
In the patch I removed mb_send_mail() for now as I didn't found a way yet to fix the multipart issue. According to the PHP documentation this fix would most likely also require PHP 5. In version 4 it doesn't seem to be possible to overwrite the Content-Type header.
[Updated on: Mon, 11 May 2009 22:24] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Umlaut issue with 2.7.7 on Fedora 8 with UTF-8 (resolved) [message #159863 is a reply to message #159862] |
Tue, 30 June 2009 18:22 |
jm2morri
Messages: 225 Registered: January 2009 Location: Stratford, Ontario, Canad...
Karma: 0
|
Senior Member |
|
|
So what I can see is that if I force the charset in the news client (Entourage on Mac OS X in this case) to "Western European (Windows)" the text looks OK. If I set it to "Unicode UTF-8" then I get the funny characters (black diamond with question mark in the middle).
The header clearly indicates that the charset is supposed to be UTF-8 but it clearly isn't. So that seems to be the problem.
So where is the body constructed? It appears it isn't using the correct charset in that function.
James.
|
|
|