What Is That Encoding ( \u041e\u0434\u0440 ) And How To I Get It Back To Normal?
Solution 1:
Those are Unicode escape sequences. The quickest way to decode them (non-programmatically) is simply by pasting them into your browser's console, in quotes:
"\u041e\u0434\u0440\u0438\u043d\u044f-\u0423\u0440\u0431\u043e\u0432\u0430"
> "Одриня-Урбова"
There are a few answers here that show how to decode them in Java, for example:
Solution 2:
That's not UTF-8 encoded, that's just a normal string. In Java, the \uXXXX
is a Unicode character escape that represents the actual Unicode character at the given code point.
So, your string is normal, it's not encoded.
Solution 3:
Did't try it, but here you may find a helpful unicode escape string parser.
Solution 4:
The unicode characters will appear like áéíóú or something like that when you show them on the screen. I phased a similar situation parsing data with MySQL db using php so on the php file I encode the strange characters tu UTF-8, the a string like the one you have appeared, then when I presented the data on a list view the characters appeared as they should.
Solution 5:
It is already normal:
The following code
Stringstr="\u041e\u0434\u0440\u0438\u043d\u044f-\u0423\u0440\u0431\u043e\u0432\u0430";
System.out.println(str);
will print out: Одриня-Урбова
See the JLS-reference: Unicode-Escapes
Post a Comment for "What Is That Encoding ( \u041e\u0434\u0440 ) And How To I Get It Back To Normal?"