I wanna make CSV file encoding UTF-8. Now, my CSV file cannot show Japanese Fonts. I want C# code to solve this problem.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
SuSanda,
I'm not sure about your current code or your actual text you're trying to save, but this might get you in the right direction.
If you open that file in Excel, it will show the Japanese text as expected.
If you do not include the
Encoding.UTF8
parameter, it will display gibberish.I hope that's what you're looking for.
This code helps to text from a csv file to save it as a encoded csv file. To use it Call as below and save it.