Acmlm's Board - I2 Archive - Programming -    
User | Post |
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? |
|