Skip to content

Add functionality to parse source as specified encoding and get result as specified encoding #141

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

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

feyst
Copy link
Contributor

@feyst feyst commented Oct 15, 2024

As discussed in #140 we would like to add a feature where you can set the source encoding and also specify the result encoding.

@feyst feyst force-pushed the master branch 3 times, most recently from 33e2417 to 9434e4a Compare October 15, 2024 14:16
executionOrder="depends,defects"
requireCoverageMetadata="false"
beStrictAboutCoverageMetadata="false"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running the tests gave errors that these attributes were not allowed.

static::assertSame(3598, \strlen($interpreter->getJson()));
static::assertSame(9383, \strlen($interpreter->getJson(true)));
static::assertSame(3594, \strlen($interpreter->getJson()));
static::assertSame(9379, \strlen($interpreter->getJson(true)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before the changes these tests were failing so I adjusted it first

@@ -227,7 +227,7 @@
"messageTrailer": {
"segmentIdx": 20,
"segmentCode": "UNT",
"segmentGroup": "SG16",
"segmentGroup": "",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before the changes these tests were failing so I adjusted it first

@feyst feyst force-pushed the master branch 2 times, most recently from 6ef2f54 to 5d630b4 Compare October 15, 2024 15:05
@sabas sabas merged commit 9f2c96e into php-edifact:master Oct 16, 2024
@sabas
Copy link
Collaborator

sabas commented Oct 16, 2024

Thank you!

@sabas sabas mentioned this pull request Oct 16, 2024
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.

2 participants