forceUnicode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Add Leopard20's because he wanted it to be specifically inserted on this page and nothing could remove that idea from his mind therefore I had to comply so the wiki can be at peace and its Discord channel too - also, I like trains)
Line 20: Line 20:
* [[splitString]]
* [[splitString]]
</div>
</div>
{{Feature | important | [[forceUnicode]] usage with the argument <tt>0</tt> will also apply to [[call]]ed code.}}


|s1= [[forceUnicode]] mode
|s1= [[forceUnicode]] mode

Revision as of 14:56, 25 February 2021

Hover & click on the images for description

Description

Description:
Switches the mode of operation of the following commands to unicode:
forceUnicode usage with the argument 0 will also apply to called code.
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

Additional Information

See also:
copyToClipboardcopyFromClipboardselectcountininsertfindsplitString reverse

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