|
Home > Archive > FoxPro Help and Support > January 2006 > Problem with pseudo-graphic
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem with pseudo-graphic
|
|
| Stoyan Malchev 2006-01-18, 8:25 pm |
| I have a text with MS-DOS encoding /e.g. CP866/ that includes some
pseudo-graphic symbols.
Is it possible to convert it in win codepage /CP1251/?
Thanks in advance
| |
| Leonid 2006-01-20, 3:24 am |
| Did you try
strtofile(cpconvert(
866,1251,filetostr("file866.txt"),"file1251.txt"))
Leonid
"Stoyan Malchev" <stoyan.malchev@pitagor.com> wrote in message
news:%23ZudMkHHGHA.2948@TK2MSFTNGP10.phx.gbl...
>I have a text with MS-DOS encoding /e.g. CP866/ that includes some
>pseudo-graphic symbols.
>
> Is it possible to convert it in win codepage /CP1251/?
>
> Thanks in advance
>
| |
| Stoyan Malchev 2006-01-20, 3:24 am |
| Yes.
If 866.txt looks
___________________
__
some text some text
some text some text
___________________
__
strtofile(cpconvert(
866,1251,filetostr("866.txt")),"1251.txt")
and 1251.txt is
+---------------------+
some text some text
some text some text
+---------------------+
"Leonid" <leonid@NOgradaSPAM.lv> wrote in message news:OR2lWdZHGHA.648@TK2MSFTNGP14.phx.gbl...
> Did you try
>
> strtofile(cpconvert(
866,1251,filetostr("file866.txt"),"file1251.txt"))
>
> Leonid
>
>
> "Stoyan Malchev" <stoyan.malchev@pitagor.com> wrote in message
> news:%23ZudMkHHGHA.2948@TK2MSFTNGP10.phx.gbl...
>
>
| |
| Leonid 2006-01-22, 7:23 am |
| Then you may write your own convertion function using CHRTRAN(). It's not very difficult
Leonid
"Stoyan Malchev" <stoyan.malchev@pitagor.com> wrote in message news:%23gxyN8ZHGHA.1424@TK2MSFTNGP12.phx.gbl...
Yes.
If 866.txt looks
___________________
__
some text some text
some text some text
___________________
__
strtofile(cpconvert(
866,1251,filetostr("866.txt")),"1251.txt")
and 1251.txt is
+---------------------+
some text some text
some text some text
+---------------------+
"Leonid" <leonid@NOgradaSPAM.lv> wrote in message news:OR2lWdZHGHA.648@TK2MSFTNGP14.phx.gbl...
> Did you try
>
> strtofile(cpconvert(
866,1251,filetostr("file866.txt"),"file1251.txt"))
>
> Leonid
>
>
> "Stoyan Malchev" <stoyan.malchev@pitagor.com> wrote in message
> news:%23ZudMkHHGHA.2948@TK2MSFTNGP10.phx.gbl...
>
>
|
|
|
|
|