Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用powershell cmd将文本文件转换为resx文件时出现编码问题_Powershell_Encoding_Utf 8_Character Encoding_Resx - Fatal编程技术网

使用powershell cmd将文本文件转换为resx文件时出现编码问题

使用powershell cmd将文本文件转换为resx文件时出现编码问题,powershell,encoding,utf-8,character-encoding,resx,Powershell,Encoding,Utf 8,Character Encoding,Resx,我尝试使用powershell命令将文本文件转换为resx文件,如下所示 Resgen myFile.txt myFile.resx myFile.txt文件由德语组成 例如:文本文件由“Längsseitenzufuhr”单词组成 转换为resx文件后,它将单词“Längsseitenzufuhr”组成为“L”�resx文件中的“ngsseitenzufuhr” resx文件中不支持“ä” 我认为这是编码问题 我还尝试将文本文件编码更改为utf-8。但同样的问题也在发生 有没有办法在resx

我尝试使用powershell命令将文本文件转换为resx文件,如下所示

Resgen myFile.txt myFile.resx
myFile.txt文件由德语组成

例如:文本文件由“Längsseitenzufuhr”单词组成

转换为resx文件后,它将单词“Längsseitenzufuhr”组成为“L”�resx文件中的“ngsseitenzufuhr”

resx文件中不支持“ä”

我认为这是编码问题

我还尝试将文本文件编码更改为utf-8。但同样的问题也在发生


有没有办法在resx中找到正确的单词?

作为一个德国人,我知道这个问题。我们的语言特定字符有国际符号。列表如下:

ä = ae
ö = oe
ü = ue
ß = ss  (exists as lower case only)
Ä = Ae
Ö = Oe
Ü = Ue
如果可能的话,用这种方式替换德语字符,这在我们的语言中是允许的



我发现一些文章喜欢用技术的方式来解决这个问题。将文件转换为UTF-8似乎是正确的。

作为德国人,我知道这个问题。我们的语言特定字符有国际符号。列表如下:

ä = ae
ö = oe
ü = ue
ß = ss  (exists as lower case only)
Ä = Ae
Ö = Oe
Ü = Ue
如果可能的话,用这种方式替换德语字符,这在我们的语言中是允许的



我发现一些文章喜欢用技术的方式来解决这个问题。将文件转换为UTF-8似乎是正确的。

在记事本中打开myFile.txt,然后使用“unicode”编码选项将其另存为新文件。尝试对新文件运行resgen谢谢现在正在工作..在记事本中打开myFile.txt,然后使用“unicode”编码选项将其另存为新文件。尝试对新文件运行resgen谢谢现在正在工作。。