gpt4 book ai didi

linux - 使用 shell 脚本以 UTF8 格式导出字符

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:39:48 25 4
gpt4 key购买 nike

<分区>

我有一些脚本有像

这样的命令
echo 'something'

然后我像这样从 shell 运行脚本

myScript.sh > myfile.txt

而且在 linux 上没有问题,一切看起来都很好。但是当我将文件发送到 windows 时看起来很难看,我没有使用不同编码的经验,但我认为我需要以某种方式用 utf8 编码编写文件。

如何使文件在 linux 和 windows 中看起来相同我有 .txt 扩展名

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com