Project

General

Profile

Actions

Bug #31

closed

Use a default non western codepage and using local characters show up as ????

Added by Wil van Antwerpen almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
03/27/2017
Due date:
% Done:

0%

Estimated time:

Description

sergey
Although with yesterday's fix it shows Russian now, it does not allow to type in Russian. Instead symbols I have get '?????' (question marks).

wil
You mean the line:

Move (ToANSI(sLine)) to sLine

In method AddLineToBuffer?

Yeah I can imagine that that only fixes reading.
The control is fully unicode capable. But as DataFlex is not, that does not help.

But you can tell it what characterset to use by using:

SCI_STYLESETCHARACTERSET

So in page_object try:

Send EditorMessage SCI_STYLESETCHARACTERSET STYLE_DEFAULT SC_CHARSET_ANSI

As it is set –per style- it might have to be set for each style.

You can also try:

SC_CHARSET_DEFAULT and SC_CHARSET_RUSSIAN

sergey
OK, I will check this later (can we make a note under repository or whatever you have there). More likely (and at least for DF) we should provide this automatically rather setting something for each particular language.

More likely (and at least for DF) we should provide this automatically rather setting something for each particular language.
Not sure how it is done in CM, but can not recall I had some issues re Language.

Actions

Also available in: Atom PDF