#1 2014-07-19 11:20:23

tech
Member
Registered: 2014-01-13
Posts: 110

Trouble with arabic text in MainDemo

Hi,

I've changed the TLabelEdit with the tntEdit to be able to put/show some arabic chars but I get '?' chars either in the tntEdit and in the database. When I put the arabic text directly with Sqlite database browser, it appears correctly on the MainDemo DrawGrid but not on the tntLabel ! What I'm doing wrong here ?

D7, win8, SQLite3

thnx,

Offline

#2 2014-07-19 14:08:20

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Trouble with arabic text in MainDemo

You are using WideString content non consistently.

Ensure you convert the content as expected.
You have UTF8ToWideString() and WideStringToUTF8() to convert from the framework's RawUTF8.

Then use the WideString property of tntEdit / tntLabel.

Online

#3 2014-07-20 11:16:08

tech
Member
Registered: 2014-01-13
Posts: 110

Re: Trouble with arabic text in MainDemo

Very well, it works fine thanks a lot

Offline

Board footer

Powered by FluxBB