Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • msdn.microsoft.com/en-us/library/… 'The UnicodeEncoding object that is returned by this property may not have the appropriate behavior for your application. It uses replacement fallback to replace each string that it cannot encode and each byte that it cannot decode with a question mark ("?") character. ' Commented Oct 28, 2011 at 9:29
  • 1
    Are you sure that the input file you are reading is encoded with Unicode? Commented Oct 28, 2011 at 9:58
  • No i`m not sure but i have tested all others encodings as well and the result is the same. Commented Oct 28, 2011 at 10:07
  • Did you really try all 140 of them? Post a screenshot of a hex viewer that's displaying the file content. Commented Oct 28, 2011 at 10:16
  • 1
    The text is gibrish... this is it: asdaддасдасдасд фсд фд гфд гд фг фх гфх гй хйкй ;л ер вер в р ев дфг д фгд фг дгд фг Commented Oct 28, 2011 at 10:49