[opensuse] character set problem?
Hi Everybody, I'm working on a website update on my SUSE box and can't seem to see what my problem is here:
<?php $ua_ok= $_SERVER['HTTP_USER_AGENT']; if( eregi( "Mac_PowerPC", $ua_ok ) && eregi( "msie", $ua_ok ) && eregi( "[5]\.[2][0-9]", $ua_ok ) ) { echo( '<link rel="stylesheet" type="text/css" href="styles/mac-ie52styles.css" media="screen" />' ); } ?>
In this e-mail, for the first time, I'm seeing a rectangle immediately after the final semicolon. The php snippet doesn't work. It instead produces this string [' ); } ?>] (between the brackets) at the top-most margin of the page. Am I dealing with a character set issue? My box is all UTF-8 *except* for the FAT32 partition that gets shared with XP. This snippet was downloaded to and 'lives' on that partition. Any help figuring this out will be gratefully appreciated. TIA & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Dec 19 2006 21:37, Carl Hartung wrote:
Date: Tue, 19 Dec 2006 21:37:26 -0500 From: Carl Hartung
Reply-To: opensuse@opensuse.org To: opensuse@opensuse.org Subject: [opensuse] character set problem? Hi Everybody,
I'm working on a website update on my SUSE box and can't seem to see what my problem is here:
<?php $ua_ok= $_SERVER['HTTP_USER_AGENT']; if( eregi( "Mac_PowerPC", $ua_ok ) && eregi( "msie", $ua_ok ) && eregi( "[5]\.[2][0-9]", $ua_ok ) ) { echo( '<link rel="stylesheet" type="text/css" href="styles/mac-ie52styles.css" media="screen" />' ); } ?>
In this e-mail, for the first time, I'm seeing a rectangle immediately after the final semicolon.
I don't.
The php snippet doesn't work. It instead produces this string [' ); } ?>] (between the brackets) at the top-most margin of the page.
Giving this much spacing makes it look like you wrote a UTF-16 mail and you are not interpreting it back correctly.
Am I dealing with a character set issue? My box is all UTF-8 *except* for the FAT32 partition that gets shared with XP.
... which uses UTF-16 internally, and hence has usually no problems.
This snippet was downloaded to and 'lives' on that partition.
Any help figuring this out will be gratefully appreciated.
-`J' -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 20 December 2006 11:11, Jan Engelhardt wrote: <snip>
In this e-mail, for the first time, I'm seeing a rectangle immediately after the final semicolon.
I don't.
The rectangle was dropped after I clicked 'Send'. The copy in my 'Sent' folder and the one I received back from the list show a space in that spot, instead. Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Carl Hartung
-
Jan Engelhardt