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

[Bug]: Special Chars are corrupted in output channel definition #121

Closed
aweichler opened this issue Jun 13, 2024 · 2 comments · Fixed by #123
Closed

[Bug]: Special Chars are corrupted in output channel definition #121

aweichler opened this issue Jun 13, 2024 · 2 comments · Fixed by #123
Assignees
Milestone

Comments

@aweichler
Copy link
Contributor

Expected behavior

Add a "Ω" Sign in the operators of a output channel definition, then save and load and the sign get shown correctly.

Actual behavior

Add a "Ω" Sign in the operators of a output channel definition, then save and load and the sign is corrupted.

Steps to reproduce

Add a text operator in output channel definition, enter a "Ω" Sign at the Text field and click apply for the operator and the output channel definition. Then open the Channel Definition again and the "Ω" Sign is corrupted.
Before save:
operator-text-setting-before-save
After Save:
operator-text-setting-after-save

@aweichler aweichler added the Bug label Jun 13, 2024
@aweichler
Copy link
Contributor Author

I found out that the problem is caused by the character set "latin1". Changing the character set to "utf8mb4" fixes this issue.

The SQL for the fix is:

ALTER TABLE `bundle_outputdataconfigtoolkit_outputdefinition` 
CHANGE COLUMN `configuration` `configuration` LONGTEXT CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin' NULL DEFAULT NULL;

Is there any reason for using "latin1"? I am not sure if the table can be altered safely without data loss.

@AlternateIf
Copy link
Contributor

I found out that the problem is caused by the character set "latin1". Changing the character set to "utf8mb4" fixes this issue.

The SQL for the fix is:

ALTER TABLE `bundle_outputdataconfigtoolkit_outputdefinition` 
CHANGE COLUMN `configuration` `configuration` LONGTEXT CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin' NULL DEFAULT NULL;

Is there any reason for using "latin1"? I am not sure if the table can be altered safely without data loss.

hey, just saw this issue. i had the same bug a few weeks ago with a different greek letter. for me changing the table column similar to your approach worked without any issues so far on a production system

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

Successfully merging a pull request may close this issue.

5 participants