Xbasic
{ENCODING}
Syntax
{ENCODING=type}
Arguments
- type
The encoding to use. Can be utf8 or ascii.
Description
The {ENCODING} command defines the encoding for text in the dialog.
Example
dim cn as sql::connection
cn.open("{A5API=Access,FileName='C:\Program Files (x86)\a5v12\MDBFiles\Northwind.mdb',UserName='Admin'}")
cn.Execute("select * from customers where customerId = 'bergs'")
rs = cn.ResultSet
x = rs.data("companyname")
ui_dlg_box("Show UTF-8 Data",<<%dlg%
No encoding command - ascii encoding is assumed;
Name:[.50x];
UTF-8 encoding command - data looks correct;
{encoding=utf8}
Name:[.50x];
ASCII encoding command - data looks wrong;
{encoding=ascii}
Name:[.50x];
%dlg%)Limitations
Desktop applications only
See Also