-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Adding tests for 4 byte unicode characters #17978
Conversation
as discussed on IRC: this is by design - nothing we can do. Solution for apps: encode the data |
I don't think that this is a solution. I also don't like the "solution" to simply not allow If there is technically no way to do this on MySQL/MariaDB we should add a big warning on installation/ in the docs to not use MySQL. Better sooner than later. But first of all I try to play around with char sets within MySQL. |
That this works at all is another bug: #17981 |
This is not longer the case since 8.1 - #14346 |
A new inspection was created. |
HAHA ... you failed! @MorrisJobke You did not listen to me on IRC! |
Please be a bit more precise... I tried to address all your concerns. 😫 |
Okay - I'm taking this one back ..... |
We discussed this a lot and that was the result: Pro
Cons
Current situation
|
Hmmm, what happens when my instance supports 4byte chars (because I may be using postgres) and I share a folder to someone who is running an oc instance that does not have this activated? |
What does this mean? Will this fix handle the issue in news and music?
|
It would if the admin sets up mysql correctly (see sample.config.php) and enables |
5db0465
to
c797162
Compare
rebased @MorrisJobke I'm willing to accept this in case we can come up with an autotest.sh firing up a proper docker |
Do we have a gut feeling how most mysql servers out there are configured by default? |
@MorrisJobke any time available on your side to take care about the docker image and autotest.sh ?? just let me know - THX |
I followed these multibyte UTF-8 issues for a while now and I am still interested in the solution. As I see, some people have worked on that. Some time ago, someone suggested a new config parameter that told OC that the MySQL server is configured to use utf8mb4 which I would appreciate. Anyway, at the moment I see so many open and closed issues on the topic that I don't understand what the status is. Could someone summarize whether the issue is fixed in the most recent version or if it is planned to fix in near future? I am still stuck on my dirty-hack patched 8.0 installation and would like to update to 8.2.x. If there is no fix available: Is it easily possible to migrate from MySQL to Postgres? In the manual I only found how to migrate from SQLite. Thanks in advance. Thomas |
I would also be interested in a summary of this issue, I get the impression that this will be resolved in version 9? Would moving to PostgreSQL be a good interim solution? |
I have added ROW_FORMAT and the command runs now:
The result is that the schema is not 100% the same.
All other tables look fine I suspect that the |
So the oc_federated_reshares column have no collation info since they are no strings:
We should improve the query to also select from the
|
Hmm, this doesn't do anything:
The table keeps the wrong collation. |
In general I'm fine merging this first, but we need to address the conversion issue directly afterwards. |
my assumption is that as soon as a new column is added the collation will be adopted - but we better test this |
* success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes
* fully optional * requires additional options set in the database
c0f3d72
to
192f198
Compare
@DeepDiver1975 did you test it and confirmed that it works like this ? |
not yet |
Note: I knew later that it was needed to add some parameters to my.cnf file in order to let emojis |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Use case:
People will name their folders/files with emojis. This then will cause errors like this on mysql:
cc @Raydiation @PVince81 @DeepDiver1975
ref #4513