Looking for beta testers import of passwords to InfoWallet

Bill Vlahos bvlahos at mac.com
Sun Jan 22 22:16:01 EST 2012


Mark,

Perfect. That's it!

Coincidentally I also found it in the notes section for Open File by rodney at oceanbrowser.com:
> If you are reading in a text file (for example) which contains high ascii values (such as curly quotes - numToChar(210) ) you will find that these are displayed as garbage in the variable watcher, or if you set directly to the field contents.
> 
> The solution is to encode and decode the content:
> 
> #tData contains your data read in from file
> put uniDecode(uniEncode(tData, "UTF8")) into tData
> 
> (All credit to Dave Cragg and Devin Assay for this tip)

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

On Jan 22, 2012, at 7:00 PM, Mark Schonewille wrote:

> Bill,
> 
> on mouseUp
>  answer file "Import Password Text File" with type "Text|txt"
>  if it is not empty then
>     put "binfile:" & it into vPathToFile
>     put URL vPathToFile into fSource
>     put unidecode(uniencode(fSource,"UTF8")) into fSource
>     examineImport fSource
>  else
>     exit mouseUp
>  end if
> end mouseUp
> 
> on examineImport vPasswords
>  put vPasswords into field "fPasswords"
> end examineImport
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
> 
> On 23 jan 2012, at 00:31, 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
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list