Garry's Mod Wiki

Garry's Mod Wiki

  string utf8.force( string string )

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.

Arguments

1 string string
The string that will become a valid UTF-8 string.

Returns

1 string
The UTF-8 string.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...