Set RVStyle.DefCodePage runtime
Set RVStyle.DefCodePage runtime
My program is multilingual so when user change program language I need to change CodePage for imported TXT files too.
RichViewEdit is Unicode but I need it for TXT import.
Setting RVStyle.DefCodePage in IDE does the job but run-time it changes nothing.
I tried to set codepage to 1251 run-time (was 0 - ANSI Default) and imported Cyrillic text file - got wrong characters.
Looks like this does not work:
RVStyle1.DefCodePage:=1251;
RichViewEdit is Unicode but I need it for TXT import.
Setting RVStyle.DefCodePage in IDE does the job but run-time it changes nothing.
I tried to set codepage to 1251 run-time (was 0 - ANSI Default) and imported Cyrillic text file - got wrong characters.
Looks like this does not work:
RVStyle1.DefCodePage:=1251;
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The solution is included in the new update (available for registered users).
But only for Unicode documents.
In the text saving/loading methods, you can specify an additional optional CodePage parameter, defining a text file encoding. This code page will be used for conversion between ANSI/DBCS (file) and Unicode (document).
RichViewActions display a dialog for choosing a text file encoding when saving/loading a text file.
This feature will be available in the public (trial) version soon, at the beginning of the next week.
But only for Unicode documents.
In the text saving/loading methods, you can specify an additional optional CodePage parameter, defining a text file encoding. This code page will be used for conversion between ANSI/DBCS (file) and Unicode (document).
RichViewActions display a dialog for choosing a text file encoding when saving/loading a text file.
This feature will be available in the public (trial) version soon, at the beginning of the next week.