li_rtn=rte_text.savedocument(ls_filename,FileTypeRichText! ,EncodingUTF8!)
li_file = FileOpen(ls_filename, streammode!, Read!, LockRead!,Replace!,EncodingUTF8!)----回傳 -1
如果用
li_file = FileOpen(ls_filename, streammode!, Read!, LockRead!,Replace!,EncodingANSI! )----回傳1
為什么?
uj5u.com熱心網友回復:
不看幫助的嗎?The format that you specify in the encoding argument is valid only if you specified FileTypeText! for the filetype argument. SaveDocument saves text in ANSI format only for all other file types
只有當filetypetext!時有效,其他filetypes保存為ANSI.
所以li_file = FileOpen(ls_filename, streammode!, Read!, LockRead!,Replace!,EncodingANSI! )----回傳1
uj5u.com熱心網友回復:
我想保存在圖片的word,肯定不能選filetypetext!,那編碼只能為EncodingANSI!,這樣先以EncodingANSI!存在資料庫里,在以EncodingANSI!方式讀出來后成亂碼了,那怎么才能正常讀出來?uj5u.com熱心網友回復:
如果你是想保存圖片,可以用blob型別,直接用2進制資料保存uj5u.com熱心網友回復:
頂貼!!!轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/86494.html
標籤:腳本語言
