I have some problem with displaying Russian data from my MySQL database. Background: Some other programmer created the database and I am responsible for it now.
My problem: On a HTML page a list of statements from my database is outputted. The statements are all Russians. Out of all 80 statements, there are 6 statements which at their ends are outputted with a black icon with a white question mark in it (�).
The common thing (!!!) is that the question mark always appears at the end of the statement and the statements are the longest with around 80 chars.
Here comes a list of some statements on my HTML page:
- Я действую скорее активно, агрессивно и, думая о своей выгоде
- Как интровертный своенравный человек, который демонстрирует мало собственной ин�
- Являешься убедительным, располагающим и целеустремленным
- Я демонстрирую разум и ясность, объективность и логику
- Кого-то, кто самостоятельно мыслит и знает, как себе помочь
- То мне следовало бы сдержанно реагировать и найти другой путь, чтобы получить бол�
I had a look into the database into my table "statements" and found that the statements are saved as inidentifable chars. For example, the saved entry for the second russian statement above (which contains the question mark symbol at the end) is the following:
Я дейÑтвую Ñкорее доверительно и оказываю Ñвое доверие также другим, которые к неÐ
About the table: Its collation is utf8_unicode_ci with the fields having VARCHAR(150) as data type.
My questions:
- Why are the statements saved with these unidentifable letters in my table? How can I convert them to Russian?
- What is the reason for the question mark symbol in the html output? How can I get rid of it?
EDIT:
In the same project I found a further problem which I describe in a separate post. Maybe this problem has to do with it?