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.
-
1There's no reliable way to solve this because the input data doesn't contain enough information in the first place.Niklas B.– Niklas B.2012年03月23日 20:48:11 +00:00Commented 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-8Etienne Perot– Etienne Perot2012年03月23日 20:51:46 +00:00Commented 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.Mark Ransom– Mark Ransom2012年03月23日 20:52:29 +00:00Commented 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!Mark Ransom– Mark Ransom2012年03月23日 20:53:56 +00:00Commented Mar 23, 2012 at 20:53
-
1BTW, "Русский ек" doesn't seem to be valid either, it probably should read "Русский язык" (=Russian language), so I guess there's more than that broken.georg– georg2012年03月23日 21:35:10 +00:00Commented Mar 23, 2012 at 21:35
lang-py