Mailinglist Archive: opensuse (4634 mails)

< Previous Next >
Re: [opensuse] character set problem?
  • From: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
  • Date: Wed, 20 Dec 2006 17:11:54 +0100 (MET)
  • Message-id: <Pine.LNX.4.61.0612201709390.15218@xxxxxxxxxxxxxxx>
On Dec 19 2006 21:37, Carl Hartung wrote:

>Date: Tue, 19 Dec 2006 21:37:26 -0500
>From: Carl Hartung <suselinux@xxxxxxxxxxxxx>
>Reply-To: opensuse@xxxxxxxxxxxx
>To: opensuse@xxxxxxxxxxxx
>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.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups