CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: UniCode problem

  1. #1
    Join Date
    Jul 2006
    Posts
    141

    UniCode problem

    Hi, i would like to insert a string of unicode to a table.

    I have change the column format to utf8 and column collate to utf8_general_ci
    i am able to insert unicode through the sql as below through the MYsql query browser:

    insert into `names`(`name`)values(N'心脏病')

    But how does i use this in my vb.net program that use MYsql?
    I am using command parameter to do this but the result i get is ????
    I am using strUpdate="insert into `names`(`name`)values(N'心脏病')" but the result i get is also ????

    Does anyone has any idea to do this ?
    Last edited by johnsonlim026; February 21st, 2009 at 12:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured