Skip to main content
Stack Overflow
  1. About
  2. For Teams

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.

Draft saved
Draft discarded
Cancel
11
  • 1
    There's no reliable way to solve this because the input data doesn't contain enough information in the first place. Commented Mar 23, 2012 at 20:48
  • All the bytes in the input data are all UTF-8-encoded characters, so I think it is safe to assume that every sequence of bytes in the initial string can be safely decoded from UTF-8 Commented Mar 23, 2012 at 20:51
  • @NiklasB. is right - the UTF-8 encoded bytes are also valid Unicode codepoints so there's no way to tell what's what reliably. Commented Mar 23, 2012 at 20:52
  • @EtiennePerot, if you're starting with a UTF-8 byte sequence then please add it to the question. What you've shown us is a Unicode string which is NOT THE SAME! Commented Mar 23, 2012 at 20:53
  • 1
    BTW, "Русский ек" doesn't seem to be valid either, it probably should read "Русский язык" (=Russian language), so I guess there's more than that broken. Commented Mar 23, 2012 at 21:35

lang-py

AltStyle によって変換されたページ (->オリジナル) /