-
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
Characters other than English characters are incorrectly saved in the database #2333
Comments
Not a Fivem issue |
old version artifacts do not have this problem |
Contact QB support then, I think they have a discord |
Could you at least give some code in text so we can reproduce it |
Can you check if this worked in server version 7166? The only relevant change I can think of would be 7146cda which first showed up in 7168, but without knowing specific environment details (like what database client resource you're using) this is kind of difficult to investigate. |
I tested 7166 and 7168 on my own computer and everything is fine, then I upgraded to the latest version and everything is fine, but on my vds I have this problem windows version: Windows Server 2019 Datacanter |
I fixed the problem I updated the mariadb version and changed the function to this one QBShared.FirstLatterCapitalize = function(text)
local lower = string.lower(text)
local capitalize = string.gsub(lower, "^%l", string.upper)
return capitalize
end |
Please don't close the issue solely because you fixed your problem. This is still a potential regression that should be investigated. Does it still happen if you used the 'function' above? |
artifacts version was the recommended in the cfx discord announcement before updating there was no issue |
I'm not sure if it's indeed related to 7146cda, but maybe @jakub-cfx you can take a look? |
I have not solved my problem, it still persists |
Will definitely take a look, bit surprised that extra support ended in a regression, hopefully pinpointing where encodings diverge shouldn't take too long 🙏 |
@TGIANN would you mind posting the output of |
@outsider31000 Since you are experiencing the same issue, are you capable of running something similar to what jakub posted? Also would you happen to know what version of Windows your server is running? It also may help if the hex encodings of the two strings are provided (e.g., expected vs. actual). |
seems to happen after A letter So far the ones I fixed manually they have not came back with those symbols so to run that code dont think will show me results those images I have shared were posted at aprox the same time this post was made. so its been some time. and I have not had reports of new issues like these. but will continue to report here. |
Ah. For reference, what version of Windows 10 are you using? You can do |
Nice. Thanks. For reference, both you and TGIANN seem to be using 1809. This may point to Windows builds before 1903 requiring their own special handling - will require testing. |
thank you |
@outsider31000 Could you please run |
let me know if anything else |
Tried to repro on English (US) Windows Server 2019 (build 17763.5329) with MariaDB 10.4.27, FXServer 7290 and oxymsql 2.7.6 just like the previous comments suggested, and single quotes The last thing I can think of is that this is an issue on outdated Server 2019 installs, can you maybe try updating to the newest CU and see if the issue persists? |
I have not had this issue with latest artifacts for some time so I'm guessing it's fixed. |
Thanks for the heads up, fingers crossed it stays that way 😊 |
What happened?
Yesterday I updated to the latest artifact version and the names of the players with names with Turkish characters (ş,ü,ğ,ç etc) are not saved in the database
I typed "tgiann testsşğü" as a test and this is how it is saved
Expected result
Proper registration of Turkish characters
Reproduction steps
Importancy
Unknown
Area(s)
FiveM
Specific version(s)
Fivem 7290 | Game build 2802
Additional information
No response
The text was updated successfully, but these errors were encountered: