Garry's Mod Wiki

Revision Difference

utf8.force#512310

<function name="force" parent="utf8" type="libraryfunc">⤶ <description>⤶ Forces a string to contain only valid UTF-8 data. Invalid sequences are replaced with U+FFFD (the Unicode replacement character).⤶ ⤶ This is a lazy way for users to ensure a string contains only valid UTF-8 data.⤶ </description>⤶ <realm>Shared</realm>⤶ <file line="298-L333">lua/includes/modules/utf8.lua</file>⤶ <args>⤶ <arg name="string" type="string">The string that will become a valid UTF-8 string.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="string">The UTF-8 string.</ret>⤶ </rets>⤶ </function>⤶ ⤶