Bånder

Encoding

The Encoding interface defines constants for text encodings used in ID3v2 frames.

Table of Contents

Constants

ISO88591  = 0
The ISO-8859-1 encoding.
UTF16  = 1
The UTF-16 Unicode encoding with BOM.
UTF16BE  = 2
The UTF-16BE Unicode encoding without BOM.
UTF16LE  = 4
The UTF-16LE Unicode encoding without BOM.
UTF8  = 3
The UTF-8 Unicode encoding.

Methods

getEncoding()  : int
Returns the text encoding.
setEncoding()  : self
Sets the text encoding.

Constants

ISO88591

The ISO-8859-1 encoding.

public mixed ISO88591 = 0

UTF16

The UTF-16 Unicode encoding with BOM.

public mixed UTF16 = 1

UTF16BE

The UTF-16BE Unicode encoding without BOM.

public mixed UTF16BE = 2

UTF16LE

The UTF-16LE Unicode encoding without BOM.

public mixed UTF16LE = 4

UTF8

The UTF-8 Unicode encoding.

public mixed UTF8 = 3

Methods

getEncoding()

Returns the text encoding.

public getEncoding() : int
Return values
int

setEncoding()

Sets the text encoding.

public setEncoding(int $encoding) : self
Parameters
$encoding : int
Return values
self

        
On this page

Search results