Re: Writing a UTF8 text file to server -- solved

2018-10-04 Thread Tim Selander via use-livecode
Just for posterity... Tried many combinations of various commands opening the file as a binfile instead of a text file solved my problem Changed: open file vfile for utf8 text update To: open file vfile for binary update At which point the same command: write vdata to file vfile at end

Re: Writing a UTF8 text file to server.

2018-10-04 Thread Tim Selander via use-livecode
Hi Scott, Added info; I have charset=UTF-8" ?> at the top of the web page source. Then, I only found outputTextEncoding in the dictionary. It said it only works with CGI (server), put when I put: set the outputTextEncoding to "utf-8" into the script before dealing with the $_POST array, it

Re: Writing a UTF8 text file to server.

2018-10-04 Thread scott--- via use-livecode
Hello Tim, Did you look at the textEncode function? — Scott Morrow > On Oct 3, 2018, at 10:22 PM, Tim Selander via use-livecode > wrote: > > I am using Livecode Server on Livecode's hosting plan. > > Taking my first stab at a web response form. I am getting the data from > $_POST fine, and

Writing a UTF8 text file to server.

2018-10-03 Thread Tim Selander via use-livecode
I am using Livecode Server on Livecode's hosting plan. Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply do something like: put $_POST[firstname] the UTF8/Kanji word shows up fine in the webpage. But I am unable to save the data to a file