| Home | All functions | Legacy functions | Categories |
vuANSItoUTF8(*CSTRING InAnsiText),CSTRING,PROC,PASCAL,RAW,NAME('vuANSItoUTF8')
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.
Converts ANSI text to UTF-8 using the original vuMail compatibility behavior.
xInput (*CSTRING): ANSI input text.MESSAGE() and string assignment.src CSTRING(64)
src = 'Cafe'
MESSAGE('UTF-8 text: ' & vuANSItoUTF8(src))
DWORD that was actually the address of an internal C string buffer. Clarion can consume that value directly in string expressions, which is why the legacy examples use assignment and MESSAGE() style calls because the Clarion prototype is declared as CSTRING.*CSTRING output buffers.| Home | All functions | Legacy functions | Categories |