Unicode text as the "selected" property of revBrowser
Posted: Fri May 27, 2011 8:11 am
My instance of revBrowser has English and Russian (Unicode) text. The meta tag in the page sets the charset to UTF8. The text in both languages is displayed fine.
In the same card I have a field called "BrowserSelection" and a button with this script:
So long as the selection in the revBrowser windows is English, this works fine. But when I select Russian text, only question marks show up in field BrowserSelection.
What am I doing wrong?
Thanks,
sp27
In the same card I have a field called "BrowserSelection" and a button with this script:
Code: Select all
on mouseUp
get revBrowserGet(gBrowserID, "selected")
put uniEncode(it, "UTF8") into locSelectedText
set the unicodeText of field "BrowserSelection" of this card to locSelectedText
end mouseUp
What am I doing wrong?
Thanks,
sp27