Hello fellow programmers!
I'm using SFML2 I've been extending the functionality of MrX's irc-bot and I have a problem regarding the sf::TcpSocket::Receive(), or at least so I think..
I'm reading the incoming data from the server with
sf::TcpSocket::Receive(Buffer, 0, 4096)
where Buffer is a char Buffer[4096];
I then convert all the incoming data to a std::string and then continue to process what it contains etc.
The problem lies within the encoding of the text in the string. In the event of a name-list being received from the server I add them to a vector containing a custom class CUser.
But it seems that when the usernames contain the letters å, ä & ö, it fails totally.
If I try to output a username containing å, ä or ö into the console, the letter shows up as � and I'm not really sure what to do to help this.
Any ideas are welcome