StreamWriter erroneous characters

前端 未结 2 1681
借酒劲吻你
借酒劲吻你 2021-01-22 15:45

Having an problem where streamwriter is producing erroneous characters in a csv that I\'m producing. The characters,  , only appear at the start of the file:

2条回答
  •  旧时难觅i
    2021-01-22 16:26

    Those are probably characters designating that the file is unicode, and not ansi.

    Are you opening the file as an ANSI file, in a text editor? If so, that's why you're seeing the characters. Either try opening it as unicode, or set your encoding to not be unicode.

提交回复
热议问题