Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming -    
  
User name:
Password:
Reply:
 

UserPost
windwaker
Posts: 673/1797
Yeah, I cahnged to ISO-8859-1 with PHPEd, and I think TextPad uses some US encoding thing, and I'm using that from now on. Thanks tons for your help; I don't know what I would do if you hadn't have told me this .
Vystrix Nexoth
Posts: 195/348
well, as I explained to you on IRC, it's what's called the "Byte Order Mark" used by Unicode. What it does is it indicates that (1) the text uses the Unicode character repertoire, and (2) it uses the UTF-8 format for rendering Unicode text into bytes (others are UTF-16BE, UTF-16LE, and UTF-32BE/LE). however, it is not required, because the character encoding can be specified in other ways (e.g. a <meta> element in HTML).

PHP, meanwhile, outputs anything that's not inside <?php ?> as straight HTML. this includes the byte order mark that's present at the very beginning of the file.

you should configure your text editor to not output the BOM. if it doesn't provide that option, then either (1) switch it to use a non-Unicode encoding (such as ISO-8859-1) or (2) get a better text editor.
windwaker
Posts: 629/1797
?

?

This keeps appearing at the top of my site >_x. I know it can be caused when you use cookies or something, but I'm not using cookies. I'm just using a math function I wrote and $_GET.

Anyone seen this before?

Edit: eck, evidently it's because I require "function.php"; for the function, which's in function.php of course =P. If I remove the "require", it doesn't seem to care echo ? at the top of the page.

What's wrong with this?
Acmlm's Board - I2 Archive - Programming -    


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.