本文介绍了写入文本文件时,用é代替©©的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在创建用于文件处理的简单应用程序
当我在阅读像"SGSSociétéGénéralede Surveil验证"这样的文章时,我遇到了问题.
它正在写出"SGSSociétéGénéralede Surveill的验证"这样的输出行.
é正在转换为é...

我想写的是我正在读的是été"而不是éé"的

请帮助我解决此问题.



i m creating simple app for file processing
i m getting problem when i m reading line like this "Validation by SGS Société Générale de Surveil"
it is writing in out put line like "Validation by SGS Société Générale de Surveill"
é is converting to é ...

i want to write as it is what i m reading that is "été" but not "éé" insted

please help me to fix this

推荐答案

public:

      String* filename = "your file name here";

      FileStream* fs = new FileStream(fileName, FileMode::CreateNew, FileAccess::Write, FileShare::None);
      StreamWriter* swFromFileStreamASCIIEnc = new System::IO::StreamWriter(fs, System::Text::Encoding::ASCII);

      swFromFileStreamDefaultEnc->Write("éé");
      swFromFileStreamDefaultEnc->Flush();
      swFromFileStreamDefaultEnc->Close();



这篇关于写入文本文件时,用é代替©©的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 21:15