我是一个自动化的菜鸟,并试图读取一个 csv 文件,我可以将其处理成将在电子邮件中使用的表格。 我终于能够删除 在电力自动化方面。如何删除转义字符 从这里出发?
我尝试过以下方法:
string(outputs('Get_file_content')?['body'])
replace(replace(replace(outputs('Compose'), '\r\n', ''), '\n', ''), '\r', '')
split(outputs('Convert_to_String'), '\n')
使用
Replace()
函数并将 \r
表示为 decodeUriComponent('%0A')
样品:
replace('string\r',decodeUriComponent('%0A'),'')
以下是钥匙:
希望这有帮助。