Also ... be sure that the procedure you're using to display the data knows to expect UTF-8! The only way to know for certain that the byte stream was handled correctly is to display some of it using a command-line tool like hexdump. Examine the bytes.