Skip to content

Truncate UTF-8 heavy fields when writing STATA#383

Open
FlipperPA wants to merge 6 commits into
WizardMac:devfrom
FlipperPA:dev
Open

Truncate UTF-8 heavy fields when writing STATA#383
FlipperPA wants to merge 6 commits into
WizardMac:devfrom
FlipperPA:dev

Conversation

@FlipperPA

Copy link
Copy Markdown
Contributor

Fixes #382

This truncates the very rare edge cases that exceed the byte limit, because of heavy UTF-8 usage. This path was chosen because using strL in STATA would require a significant rewrite to re-count the byte map for the binary file.

This will very, very rarely truncate the field, but provide the full row count, rather than silently dropping the entire row.

@FlipperPA

Copy link
Copy Markdown
Contributor Author

Apologies for the "git noise" from my previous contributions. I should've rebased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STATA writer assumes non-unicode characters for byte count

1 participant