$WBFU - show field value as UTF-8
Availability
$WBFU is available for use with following
recordset related WBSP commands:
UPDATE
MULTI UPDATE
DELETE
QUERY
Send Personal Mail (if recordset is
used)
Send Bulk Mail.
Syntax
$WBFU[fieldname]
Parameters
fieldname - exactly the same field name as defined in
recordset.
Returns
- The value stored in recordset field fieldname for current record converted to UTF-8
charset.
- Nothing (empty string) if recordset does not exist or there is no current
record, or if field value is NULL.
Example
<!--
[FormFields]
WB_basename=test.mdb
wb_rcdset=demo
wb_command=Q
wb_query=ID=3
-->
<!--WB_BeginTemplate-->
<html>
<head>
<meta
http-equiv="Content-Type" content="text/html;
charset=utf-8">
</head>
<body>
<!--WB_BeginDetail-->
This
is original value (using WBF): $wbf[demotext]<br>
This is a converted
value (using WBFU):
$wbfu[demotext]!
<!--WB_EndDetail-->
</body>
</html>
After running this example, the resulting page in browser, may look like
this:
This is original value (using WBF):
????
This is a converted value (using WBFU): ©®™ß!