简体   繁体   中英

Problem with posting values from ASP.NET to mysql

I'm developing a web site with mysql backend and I have the following problem. The site has a Search page that takes parameters in TextBoxes. When I'm posting the form and building the criteria from the values mysql doesn't return anything when I use greek characters. When I'm using Mysql Query Browser the same query works fine. I've set globalization in web.config and have everything in utf-8 encoding. Please Help.

I had a similar problem in PHP recently and had to run some SQL before each query along the lines of:

SET NAMES 'utf8'

Or:

SET CHARACTER SET utf8

Might be worth giving this a try? Hopefully it will help.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM