|
|
 | | From: | George Balanis | | Subject: | ANSI Character set in PLUS 2.5 | | Date: | Fri, 14 Jan 2005 21:21:59 -0500 |
|
|
 | Subject: ANSI character set in PLUS 2.5
Hello:
For the purpose of using DBASE to manipulate text, I have entered the text of several text files into a memo field of a table, one file per row. If I open the table and have it active, then the command LDRIVER() gives DBWINUS0 and CHARSET() gives WIN1252. Furthermore, PLUS.INI has LDriver=WINDOWS and the CFG file has Langdriver='ascii' ANSI.
I open the memo field and I find that some characters are squares. Then, I copy each such character into the clipboard and then I operate on it with ? ANSI(‘paste’) where ‘paste’ is the paste from the clipboard. This shows that the squares, although they look the same in the memo field text, are different ANSI characters, such as CHR(201), CHR(252), CHR(197).
QUESTION: How can I make the text in the memo fields to display the text characters with the ANSI character set?
By the way, the situation is the same with MICROSOFT WORD 2003. I also get the same squares in the texts.
George Balanis
|
|
 | | From: | George Balanis | | Subject: | Re: ANSI Character set in PLUS 2.5 | | Date: | Sun, 16 Jan 2005 15:29:05 -0500 |
|
|
 | George Balanis Wrote:
> Subject: ANSI character set in PLUS 2.5 > > Hello: > > For the purpose of using DBASE to manipulate text, I have entered the text of several text files into a memo field of a table, one file per row. If I open the table and have it active, then the command LDRIVER() gives DBWINUS0 and CHARSET() gives WIN1252. Furthermore, PLUS.INI has LDriver=WINDOWS and the CFG file has Langdriver='ascii' ANSI. > > I open the memo field and I find that some characters are squares. Then, I copy each such character into the clipboard and then I operate on it with ? ANSI(‘paste’) where ‘paste’ is the paste from the clipboard. This shows that the squares, although they look the same in the memo field text, are different ANSI characters, such as CHR(201), CHR(252), CHR(197). > > QUESTION: How can I make the text in the memo fields to display the text characters with the ANSI character set? >
I found the solution. In case others are also interested, once can transform a whole text with one application of ANSI() where the variable inside () is a memo field or string. So, I created a new memo field in the table that in has the ANSI version of the non-ANSI memo field. Furthermore, I entend to write a little program that creates a new text file that has the ANSI version. This way, one can use DBASE to transform a non-ANSI text file to its ANSI version.
George
George
|
|
 | | From: | Yiannis H. Economides | | Subject: | Re: ANSI Character set in PLUS 2.5 | | Date: | Mon, 17 Jan 2005 07:28:21 -0500 |
|
|
 | George hi.
The right solution to yoyr problem is to use language drivers appropriate for the text you are interested to use. Am I right to assume that you are using special characters like £ or ² in that text ? If so the solution I have found is to use language driver PARADOX ANSI GREEK. In any case the language driver you are using must be an ANSI driver.
Yiannis H. Economides
George Balanis Wrote:
> George Balanis Wrote: > > > Subject: ANSI character set in PLUS 2.5 > > > > Hello: > > > > For the purpose of using DBASE to manipulate text, I have entered the text of several text files into a memo field of a table, one file per row. If I open the table and have it active, then the command LDRIVER() gives DBWINUS0 and CHARSET() gives WIN1252. Furthermore, PLUS.INI has LDriver=WINDOWS and the CFG file has Langdriver='ascii' ANSI. > > > > I open the memo field and I find that some characters are squares. Then, I copy each such character into the clipboard and then I operate on it with ? ANSI(‘paste’) where ‘paste’ is the paste from the clipboard. This shows that the squares, although they look the same in the memo field text, are different ANSI characters, such as CHR(201), CHR(252), CHR(197). > > > > QUESTION: How can I make the text in the memo fields to display the text characters with the ANSI character set? > > > > I found the solution. In case others are also interested, once can transform a whole text with one application of ANSI() where the variable inside () is a memo field or string. So, I created a new memo field in the table that in has the ANSI version of the non-ANSI memo field. Furthermore, I entend to write a little program that creates a new text file that has the ANSI version. This way, one can use DBASE to transform a non-ANSI text file to its ANSI version. > > George > > George
|
|
 | | From: | George Balanis | | Subject: | Re: ANSI Character set in PLUS 2.5 | | Date: | Mon, 17 Jan 2005 10:08:59 -0500 |
|
|
 | Hello Yiannis:
Thanks Yianni. The driver I am using is 'ascii' ANSI. However, tables seem to get generated with DBWINUS0.
I will try your approach and see what happens.
George Balanis
Yiannis H. Economides Wrote:
> George hi. > > The right solution to yoyr problem is to use language drivers appropriate for the text you are interested to use. Am I right to assume that you are using special characters like £ or ² in that text ? > If so the solution I have found is to use language driver PARADOX ANSI GREEK. > In any case the language driver you are using must be an ANSI driver. > > Yiannis H. Economides > > George Balanis Wrote: > > > George Balanis Wrote: > > > > > Subject: ANSI character set in PLUS 2.5 > > > > > > Hello: > > > > > > For the purpose of using DBASE to manipulate text, I have entered the text of several text files into a memo field of a table, one file per row. If I open the table and have it active, then the command LDRIVER() gives DBWINUS0 and CHARSET() gives WIN1252. Furthermore, PLUS.INI has LDriver=WINDOWS and the CFG file has Langdriver='ascii' ANSI. > > > > > > I open the memo field and I find that some characters are squares. Then, I copy each such character into the clipboard and then I operate on it with ? ANSI(‘paste’) where ‘paste’ is the paste from the clipboard. This shows that the squares, although they look the same in the memo field text, are different ANSI characters, such as CHR(201), CHR(252), CHR(197). > > > > > > QUESTION: How can I make the text in the memo fields to display the text characters with the ANSI character set? > > > > > > > I found the solution. In case others are also interested, once can transform a whole text with one application of ANSI() where the variable inside () is a memo field or string. So, I created a new memo field in the table that in has the ANSI version of the non-ANSI memo field. Furthermore, I entend to write a little program that creates a new text file that has the ANSI version. This way, one can use DBASE to transform a non-ANSI text file to its ANSI version. > > > > George > > > > George >
|
|
 | | From: | Ivar B. Jessen | | Subject: | Re: ANSI Character set in PLUS 2.5 | | Date: | Mon, 17 Jan 2005 17:38:28 +0100 |
|
|
 | Mon, 17 Jan 2005 10:08:59 -0500 chr(10) dbase.programming chr(10)Re: ANSI Character set in PLUS 2.5 chr(10) George Balanis chr(10)
>Thanks Yianni. The driver I am using is 'ascii' ANSI. However, tables seem to get generated with DBWINUS0.
All BDE language drivers have a long name and a short name.
The long name of the driver you are using is "'ascii'ANSI", the short name is "DBWINUS0".
Ivar B. Jessen
|
|
|