Skip to main content

current

Function current 

Source
pub fn current() -> &'static Encoding
Expand description

The encoding every AMX string conversion currently uses.

A plugin that lets the server owner choose the encoding needs to be able to report back which one is in force — in a diagnostics native, or in the line it logs at startup.

assert_eq!(samp_sdk::encoding::current().name(), "windows-1252");