Also, if charToNum is deprecated, what do I use to compare t he ascii values of two characters??
Bob S > On Sep 13, 2024, at 3:44 PM, Bob Sneidar via use-livecode > <use-livecode@lists.runrev.com> wrote: > > I am having an issue where I am trying to compare the data of two files I > read from disk character by character. To the naked eye, both files are > identical. If I open each file in Sublime Text and do a fileDiff, it declares > they are identical. But when I look at the actual file size, one is slightly > larger than the other. Also, when I compare the ascii values of each > character, right off the bat with the first character, charToNum reports that > in one file the first character is “F” which is correct. But for the second > file, it is “?” which is NOT CORRECT!!! > > Now one file I generated by converting a Konica Minolta address book to a > Toshiba address book. I won’t go into the gory details, but remember both > files I am comparing look identical and SublimeText thinks they are > identical. > > My suspicion is that the source file, the Konica Minolta address book is > unicode. What I did. to try and get around this is I used textDecode(it, > “ASCII”) on the data read from the disk, but I am still getting the same > results. > > My goal is to read the data as ascii data with NO UNICODE and then export it > with NO UNICODE. > > Bob S > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode