Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
Midas
Install
Java Midas
Socket Server
TClientDataSet
TDataSetProvider
TDCOMConnection
TMidasConnection
TOLEEnterpriseConnection
TProvider
TRemoteServer
TSimpleObjectBroker
TSocketConnection
TWebConnection
WebMidas
XML Midas
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/Midas/TClientDataSet
[ Add a report in this area ]
Report #:
90009
Status:
Closed
TClientDataset failure when string contains unicode(UTF-8) character
Project:
Delphi
Build #:
12.0.3420.21218
Version:
12.3
Submitted By:
Hartmut von Hoff
Report Type:
Crash / Data loss / Total failure
Date Reported:
11/29/2010 3:34:39 AM
Severity:
Critical / Show Stopper
Last Updated:
11/30/2010 6:26:23 PM
Platform:
All platforms
Internal Tracking #:
Resolution:
Test Case Error
(Resolution Comments)
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
TClientDataset failure when string contains unicode(UTF-8) character. If you write some kind of UTF-8 characters into a TDBGrid which has a TClientDataSet linked via DataSource, after post the character will be shown as '???'.
Steps to Reproduce:
See sample application.
1. Copy the cyrillic word of the TEdit component into clipboard.
2. Press the 'Create DataSet' button.
3. Paste the word from the clipboard into the DBGrid-Cell and post it.
Workarounds
Nothing
Attachment
90009.zip
Comments
Tomohiro Takahashi at 11/29/2010 6:06:12 PM
-
In my environment(Delphi 2009(12.0.3420.21218) on Vista(Japanese Edition)), I rebuild your project and run it.
But, I can not reproduce your issue. It works fine.
Any othe information to reproduce your issue?
Hartmut von Hoff at 11/30/2010 3:01:33 AM
-
We tried it on German (European) XP-Professional(32-Bit) and on Win7 (64-Bit). Maybe we have to configure anything on language/region-options? But other components are working fine, it only happens with TClientDataSet.
Tomohiro Takahashi at 11/30/2010 6:25:16 PM
-
In your application, you use TStringField for TClientDataSet.
But, we need to use TWideStringField when handling Unicode(e.g., Russian, Japanese, Chinese etc...) characters.
So, please try assign TWideStringField.
Tomohiro Takahashi at 11/30/2010 5:29:21 PM
-
Indeed, if I download only 'Project2.exe' you attached and run it on WinXP(English), I can reproduce your issue.
I will test this case with other Delphi versions and OSs.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us