I made a database in PhpMyAdmin and developed an application in Visual Studio 2010 C#.
When I add a new row in PhpMyAdmin, special characters are shown in Visual Studio properly, but when I add it in datagridview in Visual Studio, the characters č, ć and đ are not shown properly in tables.
Thank you in advance
It's likely that the collation on the database is set incorrectly as accent insensitive. This should help: Latin characters in phpMyAdmin with UTF-8 collation
Solved problem: added to connectionString charset=utf8
connectionString="..... ;Default Command Timeout=300000; charset=utf8;"
That's it :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.