What is  ?

This is a discussion on What is  ? within the PHP Language forums, part of the PHP Programming Forums category; What is this and why does it appear on my web pages:  ? In case the font doesn't translate into ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2004
red
 
Posts: n/a
Default What is  ?

What is this and why does it appear on my web pages:  ?

In case the font doesn't translate into newsgroups, its a funny looking
i with two dots over the top, two greater than signs real close
together, and an upside down question mark.

I have winxp with apache 2 and php5 installed on my computer.

So far, through a process of elimination, I have determined that the
offending funny little marks appear when ever I edit certain included
pages. The only way to get rid of them is to copy and paste the entire
contents of the includes into new documents. But whenever I edit that
document , the marks appear again.

Its a pain in the ass, as I am contantly editing the functions in my
includes.

I wish I knew what exactly is going on, and how to prevent it.

thanks.

pete

Reply With Quote
  #2 (permalink)  
Old 08-23-2004
Chung Leong
 
Posts: n/a
Default Re: What is  ?

"red" <groups@reenie.org> wrote in message
news:J_bWc.449169$165.71721@news.easynews.com...
> What is this and why does it appear on my web pages:  ?
>
> In case the font doesn't translate into newsgroups, its a funny looking
> i with two dots over the top, two greater than signs real close
> together, and an upside down question mark.
>
> I have winxp with apache 2 and php5 installed on my computer.
>
> So far, through a process of elimination, I have determined that the
> offending funny little marks appear when ever I edit certain included
> pages. The only way to get rid of them is to copy and paste the entire
> contents of the includes into new documents. But whenever I edit that
> document , the marks appear again.
>
> Its a pain in the ass, as I am contantly editing the functions in my
> includes.
>
> I wish I knew what exactly is going on, and how to prevent it.
>
> thanks.
>
> pete


Ha ha, that is the infamous ZWNBSP--Zero Width Non-Breaking Space. Notepad
will automatically add this Unicode character (which you can't see, as it
has no width) at the beginning of files that are saved as UTF-8.

The moral of the story is 'get a real text editor.'


Reply With Quote
  #3 (permalink)  
Old 08-23-2004
red
 
Posts: n/a
Default Re: What is ?

Chung Leong wrote:
> "red" <groups@reenie.org> wrote in message
> news:J_bWc.449169$165.71721@news.easynews.com...
>
>>What is this and why does it appear on my web pages:  ?
>>
>>In case the font doesn't translate into newsgroups, its a funny looking
>> i with two dots over the top, two greater than signs real close
>>together, and an upside down question mark.
>>
>>I have winxp with apache 2 and php5 installed on my computer.
>>
>>So far, through a process of elimination, I have determined that the
>>offending funny little marks appear when ever I edit certain included
>>pages. The only way to get rid of them is to copy and paste the entire
>>contents of the includes into new documents. But whenever I edit that
>>document , the marks appear again.
>>
>>Its a pain in the ass, as I am contantly editing the functions in my
>>includes.
>>
>>I wish I knew what exactly is going on, and how to prevent it.
>>
>>thanks.
>>
>>pete

>
>
> Ha ha, that is the infamous ZWNBSP--Zero Width Non-Breaking Space. Notepad
> will automatically add this Unicode character (which you can't see, as it
> has no width) at the beginning of files that are saved as UTF-8.
>
> The moral of the story is 'get a real text editor.'
>
>

I only have the problem in Ultraedit. I thought that's as real as it
gets. I don't see the charactars in Ultraedit, but if I open the file in
a browser, I can see them there. If I open the file in Notepad, I can
see them and erase them. but they come back the next time I open them in
Ultra edit.

anyway, you pointed me in the right direction. In ultraedits file menu
is a thing called conversion, and I clicked on UTF-8 and it seems to
have done the trick. thanks.

red


red
Reply With Quote
  #4 (permalink)  
Old 08-23-2004
red
 
Posts: n/a
Default Re: What is ?

red wrote:
>
> anyway, you pointed me in the right direction. In ultraedits file menu
> is a thing called conversion, and I clicked on UTF-8 and it seems to
> have done the trick. thanks.
>
> red
>
>

I meant UTF-8 to ansi

red
Reply With Quote
  #5 (permalink)  
Old 08-23-2004
Bartlomiej Zdanowski
 
Posts: n/a
Default Re: What is  ?

red <groups@reenie.org> wrote in message news:<J_bWc.449169$165.71721@news.easynews.com>...
> What is this and why does it appear on my web pages:  ?
>


Hi.
It's an UTF8 header. Don't use notepad or other dummy soft to write
your scripts. You have to use other software and set in preferences
'not to inlude utf header'. This solution helped in my case. It's
really bad thing, because '' appears on top of all php scripts
which causes output to be sent before all other data. You then cannot
use header() and session() functions, which uses own header data and
over that this '' looks ugly ;)


Greetings,
Bartlomiej Zdanowski
PHP programmer
INFO-TRADE Ltd.
www.info-trade.pl
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0