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

When using Chinese to search for graphics, garbled characters appear. #5696

Closed
datutu58888 opened this issue Mar 18, 2024 · 4 comments
Closed
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@datutu58888
Copy link

When inputting Chinese to search for graphics, garbled characters appear.
After inputting the Chinese characters and pressing search, numbers and English garbled characters appear. The premise is that the name does not exist in the graphics library. If the name exists in the graphics library, the search can be performed normally using the regular expression method.
Thank you so much
1.2.24
1.2.25
1.2.26
All three versions have this problem
Screenshot_20240319_051303
Screenshot_20240319_051345

@datutu58888 datutu58888 added bug Undesired behaviour unverified Some days we don't have a clue labels Mar 18, 2024
@aliuzzz
Copy link
Contributor

aliuzzz commented Mar 19, 2024

The installation environment is
php 8.0/8.1
mariadb 10.3/10.11
Same problem in them all

I don't know if this problem occurs in languages other than English, but under Chinese conditions, under the condition that the database is configured with utf8 format, this problem will occur.
I think cacti is a good software for global users, and I hope it can be used in all languages

@TheWitness
Copy link
Member

Follow this guide and if it works using UTF-8, create a pull request against 1.2.x.

https://stackoverflow.com/questions/18842075/decode-base64-string-php

TheWitness added a commit that referenced this issue Mar 23, 2024
When inputting Chinese to search for graphics, garbled characters appear.
@TheWitness TheWitness added resolved A fixed issue confirmed Bug is confirm by dev team and removed unverified Some days we don't have a clue labels Mar 23, 2024
@TheWitness TheWitness added this to the 1.2.27 milestone Mar 23, 2024
@TheWitness
Copy link
Member

I will closed your pull request. This is the correct solution 53fbb81

@datutu58888
Copy link
Author

I will closed your pull request. This is the correct solution 53fbb81

After testing, this problem is quite serious. English cannot be searched using regular expressions. A friend in the forum solved it.

TheWitness added a commit that referenced this issue Apr 5, 2024
When inputting Chinese to search for graphics, garbled characters appear.
@netniV netniV changed the title When inputting Chinese to search for graphics, garbled characters appear. When using Chinese to search for graphics, garbled characters appear. Apr 28, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants