Crossplatform EURO sign?
devin_asay at byu.edu
Wed Jun 10 09:52:37 CDT 2009
On Jun 10, 2009, at 8:40 AM, Richmond Mathewson wrote:
> Just tried that by running up a stack on Mac:
> worked on Mac,
> didn't on Ubuntu 8.04 sorry!
Sometimes you first have to set the field's font to a unicode font.
What happens if you assign a unicode font to the field, then set the
unicode text? Something like:
set the textfont of fld "euro" to "font-name-here,unicode"
set the unicodeText of fld "euro" to \
uniencode((numToChar(226) & numToChar(130) &
At any rate, if the OS doesn't find a font with the symbol in it, it
won't be able to render it.
> Devin Asay wrote:
>> The only reliable way I can see is UTF-8. On my Mac the UTF-8 ASCII
>> equivalent string is ‚Ç¨. But that's different on Windows, so I
>> at the ASCII code points for the three characters. They are 226 130
>> 172. So I tried the following and it reliably rendered the Euro sign
>> on both Mac and Windows (no Linux here for me to try, but it should
>> work there, too.)
>> set the unicodeText of fld "euro" to \
>> uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8")
>> That ought to work for you.
>> Devin Asay
>> Humanities Technology and Research Support Center
>> Brigham Young University
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
Humanities Technology and Research Support Center
Brigham Young University
More information about the use-livecode