Page 1 of 1

Datagrids won't show correctly unicode text

Posted: Mon Jul 07, 2014 11:29 am
by frullone
Hi,
I'm currently using LiveCode v6.6.2 and I'm experiencing an issue with datagrids, which appears as a bug, introduced by some recent update in the environment, because with some previous LiveCode version this problem didn't show up.

I'm filling a datagrid with data and using some special characters: ASCII 177,181,247 and 937.
The code I'm using is something like this:

Code: Select all

set the useUnicode to true
 set the unicodeText of the SelectedField to NumToChar(TheActualChar)
The matter is, when ASCII is a number between 0 and 255 it works normally, with ASCII values over 255 my datagrid shows the ascii char when I'm editing a field, and then shows a "?" when I focus out of the field (or it shows directly a question mark when I'm filling the field by code). This behavior was introduced with a recent version of LiveCode, since my older builds seem to work normally. Can you please help me to work it out?

Thanks,
Andrea

Re: Datagrids won't show correctly unicode text

Posted: Wed Jul 16, 2014 1:06 am
by Zryip TheSlug
Andrea,

I done a test with the Unicode stuff built in the DGH plugin some years ago and I can't replicate the issue with 6.6.2

May I suggest you to download DGH and see if it fixes your problem? The open source DGH trial version can run for free in the LiveCode Community or Commercial version.
http://www.aslugontheroad.com/download/ ... en-sources


Here is a new lesson for creating a datagrid supporting UTF-8 or Unicode by using DGH
http://lessons.runrev.com/m/4068/l/2347 ... -using-dgh


Best,

Re: Datagrids won't show correctly unicode text

Posted: Fri Jul 18, 2014 9:59 am
by MaxV
Didi you try Livecode 7? It has Unicode support.