LIGHTSWITCH connection to MYSQL, Chinese characters cannot be saved----workaround.

Source: Internet
Author: User

Use:dotconnect for MySQL () as a database connection provider, referencing the external MySQL data source in LIGHTSWITCH.

http://www.devart.com/dotconnect/mysql/also has postgre.

LS Project not used: Chinese, but using EN to produce? It was later modified. Just no further testing .

LIGHTSWITCH connection MYSQL, when the Chinese characters entered, the occurrence cannot be saved.

1) Check MYSQL database and table, field definition, are: UTF8;

2) Check the link string that connects to the external database, modify the connectionstring in Web. config, add; Charset=utf8.

Ok!

<add name= "ff595410-d766-47ae-80b7-5965895e723e" connectionstring= "User id=root; password=zeng950213; host=127.0.0.1;database=eccom; Persist Security info=true ; Charset=utf8"/>

====================

ADO Data Providers:third-party Providers

Http://msdn.microsoft.com/en-us/data/dd363565.aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.