I have a problem with PHP. In database, the whole information is written in Armenian, and I want to get that data and display it on the screen using PHP and HTML. But when I write,
$conn = new mysqli("some-host", "some-username", "some-password", "some-website");
$sql = "SELECT * FROM categories";
$result = $conn->query($sql);
while($row = $result->fetch_assoc()) {
echo "id: " . $row["id"]. " - Category: " . $row["category"]."<br>";
}
the output is:
id: 1 - Category: ????????? ?????????????
id: 2 - Category: ??????????? ?????????????
id: 3 - Category: ???
What I must to do to change "?" symbols into Armenian letters?