Home > Software engineering >  Mysql table field show Chinese, but in the vb datagrid field name display garbled, how to do?
Mysql table field show Chinese, but in the vb datagrid field name display garbled, how to do?

Time:09-17



Everyone pay attention to the fields after the mid-term

CodePudding user response:

I'm on the computer to configure ODBC data sources, and then use dbcon. Co * * * * * * * * *="DSN=mysql" this kind of method to connect the mysql database

CodePudding user response:

Have more than 10 days ago, I collapsed

CodePudding user response:

refer to the second floor qq_42578243 response:
is more than 10 days ago, I was devastated

Need to code with "! ""
From your "last" is shown as "four Chinese characters one question mark" view:
Three characters: utf-8 to 9 bytes, according to the "ANSI code" display -> "four and a half of Chinese characters,"
The "half Chinese" no corresponding characters, and it was shown? Characters,

CodePudding user response:

The
reference 3 floor Chen8013 response:
need to code with "! ""
From your "last" is shown as "four Chinese characters one question mark" view:
Three characters: utf-8 to 9 bytes, according to the "ANSI code" display -> "four and a half of Chinese characters,"
The "half Chinese" no corresponding characters, and it was shown? Characters,


Hello, could you tell me how to code with "?"

CodePudding user response:

I didn't use a datagrid control,

Don't know if it shows the field name, it is "automatic display", or you need to show "assignment"?
If automatic display, only from the set of "database", can see the field name "text" from utf-8 to GBK, GB2312, such as
If it is, according to "code assignment" that's right, to get to the "text" from utf-8 into UTF - 16, assignment is ok again,
His check API: MultiByteToWideChar ()

CodePudding user response:

Set up the database character set

CodePudding user response:

refer to 6th floor Chen8013 response:
I didn't use a datagrid control,

Don't know if it shows the field name, it is "automatic display", or you need to show "assignment"?
If automatic display, only from the set of "database", can see the field name "text" from utf-8 to GBK, GB2312, such as
If it is, according to "code assignment" that's right, to get to the "text" from utf-8 into UTF - 16, assignment is ok again,
His check API: MultiByteToWideChar ()


Are automatically displayed, "field name text" to GBK, how to change????????????? Be specific, when I was creating a database char set utf8 and GBK, is useless,

CodePudding user response:

Chewinggum
reference 7 floor response:
set up the database character set

Your answer will be without friends

CodePudding user response:

references 9 f qq_42578243 response:
Quote: refer to 7th floor chewinggum response:

Set up the database character set

Your answer will be no friend


Can't, haven't played with mysql,
Oracle in garbled things or compromise server or client will, because I control the server, so usually I laid hands on him,
Can only help you here, do you have any friends you


CodePudding user response:

refer to the eighth floor qq_42578243 response:
Quote: refer to the sixth floor Chen8013 response:

I didn't use a datagrid control,

Don't know if it shows the field name, it is "automatic display", or you need to show "assignment"?
If automatic display, only from the set of "database", can see the field name "text" from utf-8 to GBK, GB2312, such as
If it is, according to "code assignment" that's right, to get to the "text" from utf-8 into UTF - 16, assignment is ok again,
His check API: MultiByteToWideChar ()


Are automatically displayed, "field name text" to GBK, how to change????????????? Be specific, when I was creating a database char set utf8 and GBK, all useless,

I don't have a specific operation, there is no "test" of the environment, I can't say "concrete", can only say that, we know some influencing factors,


True to "specific" operational details, 7 floor "friends", I'm afraid it can be said to you...

CodePudding user response:

Thank you very much for the zeal of a drink moon and crispy big ice cream, thank you,

Continue to wait for people to solve problems
  • Related