Skip to content

Commit

Permalink
Rezolvare caractere non-ASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
radumcostache committed Jun 25, 2023
1 parent 91caf92 commit cec05e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion destinationFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ destinationFrame::destinationFrame(User &user, Destination &destination) : Frame
attractions += it.getName() + " " + std::to_string((int)it.getRating().getVal()) + "*\n";
std::cout << "Attraction Tier: " << it.getChr() << '\n';
}
attractionText.setString(attractions);
sf::String sfTmp = sf::String::fromUtf8(attractions.begin(), attractions.end());
attractionText.setString(sfTmp);
}

std::string destinationFrame::handleEvent(sf::Event event, sf::RenderWindow &window) {
Expand Down

0 comments on commit cec05e9

Please sign in to comment.