View previous topic :: View next topic |
Author |
Message |
hyperspeed
Joined: 28 Sep 2006 Posts: 16
|
Posted: Thu Jan 18, 2007 5:39 am Post subject: v2.27 Unicode support problem |
|
|
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 |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Sat Jan 20, 2007 3:21 pm Post subject: |
|
|
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 |
|
|
hyperspeed
Joined: 28 Sep 2006 Posts: 16
|
Posted: Mon Jan 22, 2007 2:54 am Post subject: TSyntaxMemo.Lines.CharSet = DEFAULT_CHARSET |
|
|
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 |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Mon Jan 22, 2007 9:37 am Post subject: |
|
|
Please, send me sample text to test. |
|
Back to top |
|
|
|