phBot Plugins
Search…
Encoding
This function returns the encoding used by the current Silkroad locale. For iSRO/SilkroadR/cSRO SilkroadR it's utf-16le and for vSRO it could be the same or cp1252. This is useful if you want to parse certain in game packets (e.g. chat) that could be Unicode.

Usage

get_encoding()

Returns

string or None if no locale has been selected yet.
utf-16le or cp1252
Last modified 3yr ago
Copy link
Contents
Usage
Returns