Have lots of question marks on my web page.

kosivplast

New Member
Messages
1
Reaction score
0
Points
0
Here is my site - kosivplast.co.cc
On all of the pages I have question marks on places where I insert data from database. What might be wrong?
I've changed my coding to cp1251_general_ci. But it still isn't good.... HELP! :nuts:
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
The problem has nothing to do with the database. You've got a <meta> element that sets the character encoding to "windows-1251". Set the correct character encoding.

It's better to send a real "Content-type" header than using <meta>. Since you're using PHP, it's easy to do using the header function. Pay close attention to the documentation for header.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
The problem has nothing to do with the database. You've got a <meta> element that sets the character encoding to "windows-1251". Set the correct character encoding.

It's better to send a real "Content-type" header than using <meta>. Since you're using PHP, it's easy to do using the header function. Pay close attention to the documentation for header.

I do not think the problem is with the headers.
His page is in Cyrillic (Russian), which is "windows-1251"
If you view http://kosivplast.co.cc/gallery.php , you can see that the navagation links and some other parts (apparently hard coded) are displayed correctly.
It is the content that has been put into and then retrieved from the db is where the problem lies.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Why are we even going through this?

His site isn't in one of the three supported languages. That's grounds for suspension.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
There are 3 supported languages: English, French and Spanish.

If your website is not available in at least one of those three languages, it is subject to suspension and deletion.
 
Last edited:

mattura

Member
Messages
570
Reaction score
2
Points
18
But as to the problem, it might have been that the SQL database was created in a different encoding. I find it is best to use UTF-8 for text etc fields. Then you can't really have problems in the db.
 
Top