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
Fix importing logs consisting of nasty strings (#19069) #19070
Fix importing logs consisting of nasty strings (#19069) #19070
Conversation
Some UTF8 strings may stop the import. Webserver's error-log reveals: [php7:notice] [...] Mysqli statement execute error : Incorrect string [...]. Converting the string to ASCII before importing fixes the issue so that importing the logs runs successfully.
Hi @dr0i. Thanks for creating this PR. I don't think we can't merge it that way. Converting UTF-8 to ASCII will simply replace all special characters with a Are you able to determine which characters you are having trouble with? |
Hi @sgiehl , this is the log snippet:
|
That actually doesn't look invalid. But it looks a bit spammy 🙈 |
This is the snippet to be imported:
|
@dr0i I tried to reproduce that locally, but with the log line you provided it works fine for me. No error occurs and the database contains a record with the 🍓 emoji. |
@sgiehl thx for taking your time with me! Already feared that this is a
but the claim about me using
See #19069 (comment) for a bit of background re my installations. |
@dr0i Sorry, but I'm not able to provide deeper support here as my time is very limited. You can try to find some help on our forum. |
Some UTF8 strings may stop the import. Webserver's error-log reveals:
[php7:notice] [...] Mysqli statement execute error : Incorrect string [...].
Converting the string to ASCII before importing fixes the issue so that
importing the logs runs successfully.
Fixes #19069.