[英]How to check in linux shell encoding of string already generated by Python script
[英]Linux: What is the encoding of this shell script?
我正在嘗試確定Shell腳本的編碼。 以下“文件”命令返回“ application / x-shellscript”。 這是實際的編碼嗎? 我期待標准的編碼,例如“ utf-8”或“ ascii”。 我想念什么?
file --mime test.sh
test.sh: application/x-shellscript
編輯:我將文件移到我的Macbook,它的工作:
file --mime test.sh
test.sh: text/x-shellscript; charset=us-ascii
嘗試--mime-encoding
開關:
file --mime-encoding test.sh
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.