Skip to content
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

Set UTF-8 for all ConfigObj instances #8240

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

qstokkink
Copy link
Contributor

@qstokkink qstokkink commented Nov 1, 2024

Fixes #8239

This PR:

  • Fixes a syntax error in the string formatting in SaveAs.tsx.
  • Updates all ConfigObj instances to use utf-8, instead of the default ascii.

Notes:

@qstokkink qstokkink changed the title Set UTF-8 for all ConfigObj instances WIP: Set UTF-8 for all ConfigObj instances Nov 1, 2024
@qstokkink qstokkink changed the title WIP: Set UTF-8 for all ConfigObj instances READY: Set UTF-8 for all ConfigObj instances Nov 1, 2024
@qstokkink qstokkink marked this pull request as ready for review November 1, 2024 15:37
Comment on lines +158 to +162
} else if ('error' in response && typeof response.error === 'object') {
let errorCode = response.error as {handled: boolean, code: string, message: string};
setError(`${t("ToastErrorGetMetainfo")} ${errorCode.code}`);
} else if (isErrorDict(response)) {
setError(`t("ToastErrorGetMetainfo")} ${response.error}`);
setError(`${t("ToastErrorGetMetainfo")} ${response.error}`);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bit icky, but for the scope of this PR I decided not to make our custom REST API errors consistent with the unhandled errors.

@qstokkink qstokkink changed the title READY: Set UTF-8 for all ConfigObj instances Set UTF-8 for all ConfigObj instances Nov 1, 2024
@qstokkink qstokkink merged commit 6323030 into Tribler:main Nov 1, 2024
7 checks passed
@qstokkink qstokkink deleted the fix_utf8_dconfig branch November 1, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Illegal character in create_dconfig_from_params
2 participants