如何在文件写操作时检测Unicode字符
我将内容复制并粘贴到文本区域中,并将其存储在数据库中,然后我找到了Unicode字符,如数据库中所述图像所示。在此数据中创建.ICS文件时,如何检测或替换它们?
当我从数据库中获取并尝试在文件中编写描述或记录此数据时,它会打印出下面的内容。
jedes Wetter.\r\\n\r\\nDa\r\n mit dein Rasen such
取而代之的是,它应该像
jedes Wetter.\r\n\r\nDa\r\n mit dein Rasen such
在n
之前打印double \
我正在从中创建.ICS文件。 之后,它破裂了。
I copied and pasted the content into my text area and stored it in the database then I found Unicode characters as shown in the attached image in my database. How can I detect or replace them while creating a .ics file from this data?
When I fetch from the database and try to write a description in a file or log this data it prints something like the below.
jedes Wetter.\r\\n\r\\nDa\r\n mit dein Rasen such
instead, It should be like
jedes Wetter.\r\n\r\nDa\r\n mit dein Rasen such
It prints double \ before n
I am creating a .ics file from this. It breaks after jedes Wetter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论