Jump to content

[SOLVED] include inserting gap in IE 6


asmith

Recommended Posts

hi

 

i struggled with a piece of code for like 3 hours, then i decided to delete everything to find out what's the problem.

 

this simple code :

<?php
include('anyfile.php');
echo '
<html>
<body>
<table border="10">
<tr><td>asdas</td></tr></table>
</body>
</html>';
?>

 

If this file is saved in ANSI , everyting goes right.

IF this file is saved in UTF-8 (as i'm using arabic characters i have to save it on UTF-8),  the include line inserts  gap at the top of the page. a white line with a height of 5 maybe, that i killed myself to remove, it won't go unless i remove the include line. (i've tried all body margin , padding to 0 .  it is not part of the html i guess)

What should i do ?  ???  ???  ???  (it all happens in IE 6. FF is fine about it)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.