Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Character Sets
Message
From
11/09/2014 05:31:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/09/2014 05:04:39
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01607355
Message ID:
01607366
Views:
70
>>Hi All
>>
>>I am receiving text (TXT) files from a 3rd party entity. I read the file in using FILETOSTR(), amend it, and then write it out to another TXT file using STRTOFILE(). Someone has now asked me what character set we are using for the output file. How do I find that out or answer this question?
>>
>>TIA
>
>FILETOSTR() / STRTOFILE() work on plain bytes. They do not do any conversion. IOW you can read a binary as well.
>If you do not play around with stuff related to that problem the right answer would be: The output file has the same codepage as the input - if any.

IOW, what Borislav said is still true, not because of anything that these two functions do, but because of how the app composed the string. If there were any characters in it which were codepage specific, they were done according to those settings, and written into the file as bytes.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform