I wonder what the data would look like if you used a shell() command (or some other non-LC-code means - via a process maybe) to read it. Like so:

on mouseUp
   answer file "Import Password Text File" with type "Text|txt"
   if it is not empty then
      switch the platform
          case "Win32"
              replace "/" with "\" in it
              put shell("type" && quote & it & quote) into fSource
              break
          default
              put shell("cat" && quote & it & quote) into fSource
              break
      end switch
      examineImport fSource
   else
      exit mouseUp
   end if
end mouseUp

Phil


On 1/22/12 5:35 PM, Bill Vlahos wrote:
Phil,

Binfile doesn't make any difference. I did monkey with the unicode settings and 
they were unpredictable. For 8bit unicode the text all came in as special 
characters. If the text file was 16 bit then it looked OK except it didn't 
parse correctly into the table. Some of the cells had both their information 
and the next one in the same cell.

Of course I also don't know how to tell what the file is and I think most files 
are 8bit.

Gee, this is so close but I'm stumped.

Bill Vlahos
_________________
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On Jan 22, 2012, at 5:28 PM, Phil Davis wrote:

Hi Bill,

What happens if you get the file using "binfile" instead of "file"? And then 
you might have to monkey with unidecode() or something. I bet Devin Asay can tell you in his sleep.

Seems to me "binfile" would prevent any char translation, though it would also 
prevent line-ending translations.

Best -
Phil Davis


On 1/22/12 3:31 PM, Bill Vlahos wrote:
Thanks to the beta testers they discovered a problem that I don't know how to 
fix…unicode.

If the text file contains german umlaute ü,ö,ä. And these characters are not 
imported correctly. The ü (u umlaut) for example becomes √º

Here is the code:
on mouseUp
    answer file "Import Password Text File" with type "Text|txt"
    if it is not empty then
       put "file:"&   it into vPathToFile
       put URL vPathToFile into fSource
       examineImport fSource
    else
       exit mouseUp
    end if
end mouseUp

on examineImport vPasswords
    put vPasswords into field "fPasswords"
end examineImport

Any ideas?

Thanks,
Bill Vlahos
_________________
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On Jan 22, 2012, at 12:34 PM, Bill Vlahos wrote:

I'm looking for people to test the import of passwords into InfoWallet from 
tab-delimited or comma-delimited(csv) text files. These would be files exported 
from whatever existing password management program you might be using.

If you are interested and don't already have a license for InfoWallet, simply 
download the trial version from the web site and send me an email so that I can 
send you the new update. The trial version doesn't have any limits on the 
number of records so it will work fine for this test.

As an incentive to test this today (January 22, 2012), anyone who can test and 
send me the results today will get a free license for InfoWallet.

Bill Vlahos
_________________
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.


_______________________________________________
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
--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


_______________________________________________
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

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


_______________________________________________
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

Reply via email to