recodeBlob()

The function recodeBlob() recodes a character set, like recode(), but works with a blob.

Synopsis

blob recodeBlob(blob s, string sourceEncoding[, string targetEncoding]);

Parameters

Parameter Description
s A blob that contains the character set.
sourceEncoding The source encoding.
targetEncoding The target encoding. The default target encoding is the project encoding.

Return Value

The encoded blob.

Description

The function encodes a blob. For possible encodings, see recode().

VORSICHT: Only recodeBlob() can handle encodings which result in or contain 0-bytes.

Assignment

File functions

Availability

UI