views:

140

answers:

1

I wish to develop a client-server application in VB.NET. I want to store some fields in Unicode. As per MySQL documentation I tried the fields with varchar and charset UTF-8 for storing Unicode data.

I could insert data using the MySQL connector command object but when I try to display data in datagridview some junk is appearing.

What am I missing?

A: 

I don't know VB.NET, but you should have the possibility to set the encoding of the database connection from your application to MySQL when setting up to connection. Is that part set to UTF-8 as well?

Alternatively you can try issuing the following MySQL command after you connect:

SET NAMES utf8
Pekka