本文介绍了邮件标题中找到无效字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我的代码不允许我将非英文字符传递给下面的函数而contype是text / calender 附件avCal = Attachment.CreateAttachmentFromString(str.ToString(),contype); 是对此的任何修复? 谢谢Hi,my code is not allowing me to pass Non-English characters to below function and contype is "text/calender" Attachment avCal = Attachment.CreateAttachmentFromString(str.ToString(), contype);is the any fix for this ?Thanks推荐答案加下面我解决了 附件avCal = Attachment.CreateAttachmentFromString(str.ToString(),filename +。); 非常感谢。by adding below i resolved Attachment avCal = Attachment.CreateAttachmentFromString(str.ToString(), filename+ ".ics");Thank you so much. 这篇关于邮件标题中找到无效字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-03 02:29