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

Check code for places that need 'forceUnicode' #405

Open
y0014984 opened this issue Dec 21, 2023 · 0 comments
Open

Check code for places that need 'forceUnicode' #405

y0014984 opened this issue Dec 21, 2023 · 0 comments
Labels
armaOS bug Something isn't working

Comments

@y0014984
Copy link
Owner

Unfortunately, string length counts bytes but not characters. That means that unicode characters count 2 bytes instead of one. In scripts you can change this behavior with the forceUnicode command. Affected commands are:

So, every time we use one of these commands and the affected string could be a user generated unicode character we should take account for that. I have already done that at one place in PR #402 for the function fnc_terminal_removeCharFromInput.sqf

@y0014984 y0014984 added bug Something isn't working armaOS labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
armaOS bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant