How to put unicode text into a field?
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Nov 5 13:00:43 EST 2009
Hi Reinhold,
As an example, your line
put fld "Polish" & CR after fld "VocTable" of stack "VocListing"
should be
set the unicodeText of fld "VocTable" of stack "VocListing" to \
the unicodeText of fld "Polish" & uniencode(cr)
If your software runs on Intel processors only, you might also use cr
& NULL
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com
Op 5 nov 2009, om 18:37 heeft Reinhold Venzl-Schubert het volgende
geschreven:
> Hi!
>
> Learning polish I want to use unicode text in my stack.
>
> I have a lot of cds with polish vocabularies and now I want to list
> them in a table with this code:
>
> repeat with i = 1 to num of marked cds
> if fld "VocTable" of stack "VocListing" is empty then
> put fld "German" & TAB into fld "VocTable" of stack "VocListing"
> else
> put fld "German" & TAB after fld "VocTable" of stack "VocListing"
> end if
> put fld "Polish" & CR after fld "VocTable" of stack "VocListing"
> end repeat
>
> Although in my fields the polish text is well readable in the table
> the special polish letters are transformed to unreadable special
> charakters.
>
> I studied the stack "Unicode in Revolution: Taming the Beast" by
> Devin Asay
> but I only found the code:
>
> > set the unicodeText of fld "VocTable" to the unicodeText of of fld
> "Polish" <
>
> ... but the content of my table-field is compound of the contents of
> two or two hundred fields.
>
> Do anybody knows a solution?
>
> Thanks
> Reinhold
More information about the use-livecode
mailing list