Jacek, the conversion to the local locale works only if both, the server and the client, use the same Locale.
I really wonder why Mattia receives junk. A TCP connection does not change byte values because it would not know how to do it. Mattia, could you please post a small example for the server/client which reproduces the problem without your latin1() conversion? The problem lies perhaps elsewhere.
Bookmarks