Read tool file by utf-8 encoding. - #759
Merged
Merged
Conversation
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:43 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:43 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:43 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:43 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:43 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
force-pushed
the
robbenwang/encoding_utf8
branch
from
October 13, 2023 06:55
08d36c4 to
5f97aaf
Compare
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:55 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:55 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:55 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:55 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 06:55 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
force-pushed
the
robbenwang/encoding_utf8
branch
from
October 13, 2023 08:28
5f97aaf to
54a80f4
Compare
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:28 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:28 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:28 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:28 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:28 — with
GitHub Actions
Inactive
For windows, the default eoncoding will be cp1252. Specify utf-8 since that should be more common.
Robben Wang (huaiyan)
force-pushed
the
robbenwang/encoding_utf8
branch
from
October 13, 2023 08:33
54a80f4 to
552f9fc
Compare
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:33 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:33 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:33 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:33 — with
GitHub Actions
Inactive
Robben Wang (huaiyan)
temporarily deployed
to
internal
October 13, 2023 08:33 — with
GitHub Actions
Inactive
Heyi Tang (thy09)
approved these changes
Oct 13, 2023
Heyi Tang (thy09)
approved these changes
Oct 13, 2023
Cheng Liu (liucheng-ms)
approved these changes
Oct 13, 2023
Robben Wang (huaiyan)
added a commit
that referenced
this pull request
Oct 16, 2023
# Description For LLM/Prompt/CUSTOM_LLM tool, we need to read file to resolve the tool. If there is special character, will introduce unexpected error. So, we set encoding as "uts-8". This is continuing PR for #759 # All Promptflow Contribution checklist: - [X] **The pull request does not introduce [breaking changes].** - [ ] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [X] **I have read the [contribution guidelines](../CONTRIBUTING.md).** - [ ] **Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: [suggested workflow](../CONTRIBUTING.md#suggested-workflow).** ## General Guidelines and Best Practices - [X] Title of the pull request is clear and informative. - [X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [X] Pull request includes test coverage for the included changes. --------- Co-authored-by: Robben Wang <robbenwang@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Set encoding as
utf-8as reading meta file.For windows, the default encoding is
cp1252. Useutf-8since that's more common.And could read file with "Private Use" Unicode character.
All Promptflow Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines