forceUnicode
Jump to navigation
Jump to search
Description
- Description:
- Switches the mode of operation of the following commands to unicode:
- Groups:
- Strings
Syntax
- Syntax:
- forceUnicode mode
- Parameters:
- mode: Number - Mode of operation, can be:
- -1 - off
- 0 - on until end of script
- 1 - on until next compatible command
- Return Value:
- Anything
Examples
- Example 1:
copyToClipboard "д"; // Copies "д" to clipboard forceUnicode 1; copyToClipboard "д"; // Copies "д" to clipboard
- Example 2:
private _string = "привет"; // a string that uses unicode characters systemChat str count _string; // 12 - the character count is wrong without forceUnicode call { systemChat str count _string; // 12 - identical result forceUnicode 0; systemChat str count _string; // 6 - correct result }; systemChat str count _string; // 6 - outer scope is affected by forceUnicode as well
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note