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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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.' |
|
|||
|
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 |
|
|||
|
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 |