docs

Home All functions Legacy functions Categories

vuUTF8toANSI()

vuUTF8toANSI(*CSTRING InUtf8Text),CSTRING,PROC,PASCAL,RAW,NAME('vuUTF8toANSI')

This legacy-style text helper is declared as returning LONG at the Clarion boundary. The numeric return value is actually the address of a null-terminated C string buffer and can be consumed directly in Clarion string expressions. This legacy function is declared as returning CSTRING in Clarion to preserve original vuMail template behavior. Under the hood, the export returns a pointer to a null-terminated C string buffer, and Clarion consumes it directly as text, as shown in the examples below.

Description

Converts UTF-8 text to ANSI using the original vuMail compatibility behavior.

Parameters

Return value / error codes

Example (Clarion)

inBuf CSTRING(64)

inBuf = 'Cafe'
MESSAGE('ANSI text: ' & vuUTF8toANSI(inBuf))

Notes

Home All functions Legacy functions Categories