DELPHI7 Call Berlin Middleware The solution of the name garbled in the Chinese text field

Source: Internet
Author: User

MSSQL database table using the Text field name, Berlin developed DATASNAP Middleware, DELPHI7 call the middleware query method to return data to Clientdataset.data, found in the text field name garbled, the value of the text field name can be displayed normally.

What to do?

It is found that the text snippet name as in the SQL statement can solve the problem of garbled characters.

Select C1, field Name 2 as C1 from T1

Why?

Berlin uses Unicode strings by default, Berlin Clientdataset also uses Unicode strings, DELPHI7 is an ANSI string, DELPHI7 Clientdataset uses ANSI strings, This is the cause of garbled characters in the text segment.

In the end, it is not recommended to use Chinese as the field name.

DELPHI7 Call Berlin Middleware The solution of the name garbled in the Chinese text field

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.