-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with memo fields getting truncated (first character missing, multiple lines not being included) #2
Comments
May you attach dbf and memo-files with sample (5-10 records)? |
Hi, Thanks for the quick response. I would love to but these files contain PII so I cannot attach them. Are there any additions or debugging I could add that would assist you otherwise? |
May you take me field descriptions? |
Sure:
) Sadly, this application is from a vendor that won't provide us with the version of FoxPro they compiled their program with. The version as detected by inok-dbf is '48' (Visual FoxPro with memo-fields) From reviewing the output of 'strings' on the compiled application, it looks like Visual FoxPro 9 |
Hi, I think I figured this out. The line breaks in the memo blocks were just carriage returns (\r). I replaced "\r\n" in the str_replace() function with "\r" and the seems to have corrected the problem. |
Hi,
I'm running into an issue getting the full (and complete) contents of a Visual FoxPro memo field to populate correctly. When I use tools such as DBF Commander, the 'acctref' field is populated, so I do not believe this to be database corruption.
Here are the headers from the table:
[dbf_file] => /mnt/[retracted]/colacct.DBF
[table] => colacct
[version] => 48
[date] => 18.10.2017
[records] => 367588
[record_length] => 690
[unfinish_transaction] => 0
[coded] => 0
[mdx_flag] => 3
[charset] => 3
[charset_name] => cp1252
[memo] => 1
[columns] => 88
[memo_file] => /mnt/[retracted]/colacct.fpt
[version_name] => Visual FoxPro with memo-fields
Here is an example:
["acctref"]=>
"ROCEDURE CODE/DESC/AMOUNT: 4589 MANAGED CARE WITHHOL / -1.03 / H MEDICAL CEN /
The correct entry is:
PROCEDURE CODE/DESC/AMOUNT: 4589 MANAGED CARE WITHHOL / -1.03
As you can see, the ' / M MEDICAL CEN /' portion of the line is missing, as well as about 10 text entries above this line in the same memo entry.
Here is a dump of the $memo variable within readMemo():
Array
(
[signature] => text
[length] => 2703
)
The text was updated successfully, but these errors were encountered: