Elegant way to express constant UTF8 string in script?
Peter Haworth
pete at lcsql.com
Mon Jun 30 11:17:24 EDT 2014
On Mon, Jun 30, 2014 at 7:38 AM, Ben Rubinstein <benr_mc at cogapp.com> wrote:
> So... what's the most elegant way to this (is there one)? Is there any
> alternative to just looking up the UTF8 encodings and writing:
>
> put format("This ice cream is \xC2\xA9 Ben and Jerry\xE2\x80\x99s Inc")
> into kMyConstantString
>
Another approach is to use the htmlText property in conjunction with html
entities. Full lists of them are available on the web but apostrophe is
' and the copyright symbol is ©
Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
More information about the use-livecode
mailing list