4D V15, on a Mac. Once this works, the PC version is next.
I have nine text files that contain java scripts. They contain the users
password (not my idea). The health authority has decided that each site (maybe
45+ users) must change their passwords. So, I did the following:
$MyRawDoc:=Document to text($MyDocs1{$n};"UTF-8";0)
$MyReplacedDoc:=Replace string($MyRawDoc;$OldPassword;$NewPassword)
TEXT TO DOCUMENT($MyDocs1{$n};$MyReplacedDoc;"UTF-8";0)
Seemed to work. Except each modified file has three extra leading characters,
so the java scripts won’t run.If I remove the weird characters, the scripts run
fine. The documents were created with UTF-8.
In hex, the characters are ‘EFBBBF’. How do I prevent the characters from being
added?
_________________________________________
Bob McKeever http://www.mswl.com <http://www.mswl.com/>
McKeever's Software Wizardry
Port Coquitlam, B.C.
[email protected]
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************