gstory0404 / file_preview

A plug-in that supports flutter preview files,Flutter文档预览

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS预览TXT文档乱码

zou-xian opened this issue · comments

Simulator Screen Shot - iPhone 13 Pro Max - 2022-02-21 at 16 47 30
请问iOS预览TXT文档乱码如何修改编码?

Simulator Screen Shot - iPhone 13 Pro Max - 2022-02-21 at 16 47 30 请问iOS预览TXT文档乱码如何修改编码?

查看一下原txt文件的编码

iShot2022-02-21 17 00 50

这是原txt的编码 utf-8的
:set
--- Options ---
  backspace=2         modelines=0         ttyfast
noendofline           modified            ttymouse=sgr
  helplang=cn         scroll=11           window=0
  fileencoding=utf-8
  fileencodings=ucs-bom,utf-8,default,latin1

本地测试utf8的文本不会乱码

环境 iOS 15.3.1 , 手机 iPhone SE 2 ,iPhone 8
打开文本类文件会乱码
Flutter版本 1.22.6
github

file_preview:
   git:
      url: https://github.com/gstory0404/file_preview.git
      ref: 232038b4bdb9476917a96963b4f48ab2da9e87f3

@zou-xian @jjvu-xiao 使用git的代码 看下 还会乱码吗