Li_file=FileOpen (ls_filename streammode! , Read! , LockRead! The Replace! , EncodingUTF8!) - return 1
If you use the
Li_file=FileOpen (ls_filename streammode! , Read! , LockRead! The Replace! , EncodingANSI! ) - return 1
Why is that?
CodePudding user response:
Don't help?The format that you specify in The encoding argument is valid only if you specified FileTypeText! For the filetype argument. SaveDocument saves the text in the ANSI format only for all other file types
Only when the filetypetext! Available at the time, other filetypes saved as ANSI.
So li_file=FileOpen (ls_filename streammode! , Read! , LockRead! The Replace! , EncodingANSI! ) - return 1
CodePudding user response:
I want to save in the word of the picture, certainly cannot choose filetypetext! , the code only for EncodingANSI! And so to EncodingANSI first! Existing in the database, in EncodingANSI! Way to read into the code, after that how to read it properly?CodePudding user response:
If you want to save images, you can use a blob type, with 2 directly into the system dataCodePudding user response:
Top post!!!!!!