Jump to content

Prolly belongs somewhere else...


seventheyejosh

Recommended Posts

So here is my issue. I'm using a foreach loop to output divs emulating table rows. It is working great, except there is a little artifact character and I have no clue why! The page source shows a square, and the rendered page has a box with letters and numbers in it. I have no clue where to look or what to google for this, as I can't see any reason for it, other than maybe there is an extra bit being output by my foreach? I'll attach the shots. And point at it in both with my mouse.

 

Thanks, Josh.

 

Note: never has this happened to me, and I've been doing this for a while now. :(

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

I suggest writing the data from the database to a file and looking at it in a hex editor to see if it's really there.

 

 

My first guess is that the encoding on the page and the encoding of the data don't match.

 

 

What's the code echoing out the data, what charset does the browser think it is, and what charset is the MySQL table?

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.