Advanced-Equipment
Advanced-Equipment copied to clipboard
Check code for places that need 'forceUnicode'
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:
- copyFromClipboard
- copyToClipboard
- count
- find
- in
- insert
- reverse
- select
- splitString
- trim
- regexFind
- regexMatch
- regexReplace
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