phBot Plugins
  • Introduction
  • Example Plugins
  • phBot API
    • Client
    • Guild
    • Events
    • Players
    • Party
    • NPC
    • Character
    • Academy
    • Inventory
    • Pets
    • Monsters
    • Encoding
    • Locale
    • Config
    • Botting
    • Taxi
    • Packet Injection
    • Log
    • Game Data
    • Teleport
    • Training Area
    • Command Line Arguments
    • Movement
    • Quests
    • Drops
    • Paths
    • Script
    • Notifications
    • Alchemy
    • Misc
  • Chat API
  • Handling Script Commands
  • GUI API
Powered by GitBook
On this page
  1. phBot API

Encoding

get_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 cp1251. 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.

  • gb18030

  • cp1251

  • big5

  • sjis

  • euc-kr

PreviousMonstersNextLocale

Last updated 2 years ago