function: text_Utf8ToHtml

Ben Rubinstein benr_mc at cogapp.com
Tue Sep 2 08:19:13 EDT 2008


On 29/8/08 19:54, David Bovill wrote:
> Guess this will have to do. Seems to work:
> 
> function text_Utf8ToHtml someUtf8, someField
>     lock screen
>     put the htmltext of someField into oHtml
>     put uniencode(someUtf8, "UTF8") into someU16
>     set the unicodetext of someField to someU16
>     put the htmltext of someField into someHtml
>     set the htmltext of someField to oHtml
>     unlock screen
>     delete char 1 to 3 of someHtml
>     delete char -4 to -1 of someHtml
>     return someHtml
> end text_Utf8ToHtml

and see

http://quality.runrev.com/qacenter/show_bug.cgi?id=1372

- Ben





More information about the use-livecode mailing list