我有一个带有波兰语字符的 csv,但是当我在 SAS 中导入时,某些波兰语字符被替换为?"或任何其他随机变量,我该如何处理.我有一个所有可能的波兰语字符的列表,我不介意它被它的英文对应物取代
I have a csv with polish characters in it but when I am importing in SAS , certain polish characters are being replaced by "?" or any other random variable , How do I handle this. I have a list of all the possible polish characters and I dont mind it being replaced by its english counterpart
推荐答案您需要在 infile 语句中设置适当的文件编码,例如encoding="UTF-8".
You need to set the appropriate file encoding on your infile statement, e.g. encoding="UTF-8".
SAS 文档 > support.sas/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146932.htmsupport.sas/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002610945.htm