Skip to content

Office #9

Description

@Danceiny

Excel

打开utf-8编码的csv文件,碰到中文就乱码

原因是 Excel 以 ANSI 格式打开,不会做编码识别。
Office2016版本的解决方案如下:

  1. 新建excel,然后“数据”->“自文本”选择 CSV 文件,出现文本导入向导
  2. 选择”分隔符号“,文件原始格式选择Unicode(UTF-8),这一步即可看到乱码变中文了
    即使如此,如果原文件的换行符不是\r\n,傻屌excel仍然会导入失败。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions