EControl Ltd. Forum Index EControl Ltd.
VCL libraries and software support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

v2.27 Unicode support problem

 
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor
View previous topic :: View next topic  
Author Message
hyperspeed



Joined: 28 Sep 2006
Posts: 16

PostPosted: Thu Jan 18, 2007 5:39 am    Post subject: v2.27 Unicode support problem Reply with quote

Hi~

I downloaded v2.27 and doing many testing...I just found v2.27 has problems unicode support.

Once writing operation unicode in Syntax Editor doing well.

But when savetofile() and loadfromfile() it, All Characters converted to

1 byte character.

I'm a Korean and Korean language is 2 byte. but when reopen saved file

All 2 byte characters converted to 1 byte...OTL...

and One more case, when editor option changed also converted to 1 byte...

v2.26 don't has this problem. but upgrade to v2.27 has...

It very important thing for my job. and i don't have so many time.

Please fix it. I'm using delphi 7, Syntax Editor v2.27(as you known..)

and "{$DEFINE EC_UNICODE}" and "EC_UNICODE" define use.

Thank you.
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Sat Jan 20, 2007 3:21 pm    Post subject: Reply with quote

Hello,

In v2.27 there was jeneral change - chartset support.
All unicode convertions use CharSet defined in TSyntMemoStrings. This allow correct loading not native ANSI texts.
It effects on saving/loading, copy/paste operations, i.e. each time when UNICODE conversion is used.
To make text conversions the same as in v 2.26 ensure that TSyntaxMemo.Line.CharSet is equal to DEFAULT_CHARSET.

Michael.
Back to top
View user's profile Send private message Send e-mail
hyperspeed



Joined: 28 Sep 2006
Posts: 16

PostPosted: Mon Jan 22, 2007 2:54 am    Post subject: TSyntaxMemo.Lines.CharSet = DEFAULT_CHARSET Reply with quote

On Design Time, TSyntaxMemo.Lines.CharSet is DEFAULT_CHARSET.

and On Runtime i don't change TSyntaxMemo.Lines.CharSet.

but Characters convert to 1 byte chars...um...

I just write 2 byte Korean characters and just save and open it.

When debuggingtime i watched TSyntaxMemo.Lines.CharSet,

It is equal to DEFAULT_CHARSET.

What is the problem? Some more advice please.
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Mon Jan 22, 2007 9:37 am    Post subject: Reply with quote

Please, send me sample text to test.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group