TxbAnsiToUtf8

Fixed_Image

Description

This function converts the whole contents of a text buffer from ANSI to UNICODE UTF8 encoding. Warning:

attentionAttention

  • This function may be time and memory consuming for large buffers.
  • UNICODE conversion may be not available on some operating systems

Inputs

Input

Data type

Description

hTxb

DINT

Handle of the text buffer.

Outputs

Output

Data type

Description

bOK

BOOL

TRUE if successful.

Fixed_Image See also

Memory management / Miscellaneous

TxbManager: Main gatherer of text buffer data in memory.

TxbLastError: Get detailed error report about last call.

Allocation / exchange with files

TxbNew: Allocate a new empty buffer.

TxbNewString: Allocate a new buffer initialized with string.

TxbFree: Release a text buffer.

TxbReadFile: Allocate a new buffer from file.

TxbWriteFile: Store a text buffer to file.

Data exchange

TxbGetLength: Get length of a text buffer.

TxbGetData: Store text contents to an array of characters.

TxbGetString: Store text contents to a string.

TxbSetData: Store an array of characters to a text buffer.

TxbSetString: Store string to text buffer.

TxbClear: Empty a text buffer.

TxbCopy: Copy a text buffer.

Sequential reading

TxbRewind: Rewind sequential reading.

TxbGetLine: Sequential read line by line.

Sequential writing

TxbAppend: Append variable value.

TxbAppendLine: Append a text line.

TxbAppendEol: Append end of line characters.

TxbAppendTxb: Append contents of another buffer.

UNICODE conversions

TxbAnsiToUtf8: Convert a text buffer to UNICODE.

TxbUtf8ToAnsi: Convert a text buffer to ANSI.


Created with the Personal Edition of HelpNDoc: Free EPub and documentation generator