ReadLine读到的中文乱码,Import却正常
mathematica吧
全部回复
仅看楼主
level 6
泥萌都👀 楼主
SetDirectory[NotebookDirectory[]];
Import["record.txt"]
ReadFile = OpenRead["record.txt"];
ReadLine[ReadFile]
ReadLine[ReadFile]
Close[ReadFile]
-----------------------
代码如上。请问ReadLine有办法读中文吗?怎么做?
环境:Win11家庭中文版+Mathematica 12.3.1.0中文版
2022年07月29日 07点07分 1
level 6
泥萌都👀 楼主
好吧。以前都ReadLine英文的,这次第一次处理中文……
2022年07月29日 14点07分 5
1