Advanced-Equipment icon indicating copy to clipboard operation
Advanced-Equipment copied to clipboard

Check code for places that need 'forceUnicode'

Open y0014984 opened this issue 6 months ago • 0 comments

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 avatar Dec 21 '23 07:12 y0014984