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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode