Questions tagged [unicode-escapes]

Use this tag for questions related to Unicode Escapes, a Unicode character Escape sequence represents a Unicode character.

Quoting the MSDN page:

A Unicode escape sequence represents the single Unicode character formed by the hexadecimal number following the "\u" or "\U" characters. Since C# uses a 16-bit encoding of Unicode code points in characters and string values, a Unicode character in the range U+10000 to U+10FFFF is not permitted in a character literal and is represented using a Unicode surrogate pair in a string literal. Unicode characters with code points above 0x10FFFF are not supported.

Notice that is used in its general meaning, thus you are encouraged to tag your question with the corresponding programming environment as well.

318 questions
4
votes
4 answers

Eclipse shortcut key for replace special characters by unicode escape sequence

Is there a shortcut key in Ecplise that allows to replace an special character (accented) by its unicode escape sequence (\uXXXX)?
4
votes
2 answers

Unicode escape sequence in command line MySQL

Short version: What kind of escape sequence can one use to search for unicode characters in command line mysql? Long version: I'm looking for a way to search a column for records containing a unicode sequence, U+200B, in mysql from the command line.…
Paul Burney
  • 1,020
  • 11
  • 16
4
votes
1 answer

Escape multibyte characters

With Python - I can take a string and return it with multibyte characters UTF-8 escaped: $ python3 -c 'print("hello ☺ world".encode("utf-8"))' b'hello \xe2\x98\xba world' Or unicode escaped: $ python3 -c 'print("hello ☺…
user10624526
4
votes
1 answer

Convert Unicode Escape to Hebrew text

I have the following text in a json file: "\u00d7\u0090\u00d7\u0097\u00d7\u0095\u00d7\u0096\u00d7\u00aa \u00d7\u00a4\u00d7\u0095\u00d7\u009c\u00d7\u0092" which represents the text "אחוזת פולג" in Hebrew. no matter which encoding/decoding i use i…
Limitless
  • 205
  • 2
  • 6
4
votes
0 answers

Json escape unicode in SQL Server

I got JSon string with escape unicode symbols \u041e\u043f\u043e\u0440\u0430 \u0448\u0430\u0440\u043e\u0432\u0430\u044f VW GOLF I know that 4 digits after \u are the hex code of unicode character. So here's how I decoded those strings ALTER…
Pasetchnik
  • 318
  • 1
  • 9
4
votes
1 answer

OCaml: How to decode unicode-escape string?

Given a str as following: let str = "#include \\u003Cunordered_map\\u003E\\u000D\\u000A" How do I decode unicode-escape string into a unicode string or in may case Ascii string in OCaml? In python I could easily do str.decode("unicode-escape")
4
votes
0 answers

can someone explain to me the use of unicode_escape as an encoding argument in python 3.6?

I work with large pandas dataframes on a daily basis, which gets fed information that we parse from a webAPI (xml encoding is utf-8) local to our network. After I feed the dataframe and export as a csv file I start getting encoding errors (local…
codebrotherone
  • 541
  • 6
  • 22
4
votes
0 answers

Unicode tricks and hacks, vertical text, Non spacing marks

I ran into some vertical text that overflowed on a popular site which surprised me and thought it was some sort of code injection. !̸̶͚͖͖̩̻̩̗͍̮̙̈͊͛̈͒̍̐ͣͩ̋ͨ̓̊̌̈̊́̚͝͠ͅ When I select it its like one character .. when I hit backspace its like tens of…
encore2097
  • 481
  • 3
  • 8
  • 18
4
votes
1 answer

JDK 1.8 on unicode escape characters gives string literal is not properly closed by a double-quote error

Hello the smart community, I have done some research around this issue and couldn't seem to find the answer to my exact problem I am facing a strange compile-time issue with Java String literals that contain unicode escape codes. Here is the code…
Nar Gar
  • 2,591
  • 2
  • 25
  • 28
4
votes
2 answers

Python 2.7: How to convert unicode escapes in a string into actual utf-8 characters

I use python 2.7 and I'm receiving a string from a server (not in unicode!). Inside that string I find text with unicode escape sequences. For example like this: \u00b2<\a> How do I convert those…
evolution
  • 593
  • 6
  • 20
4
votes
3 answers

mgo regular expression doesn't work

Now I have some documents, each of which has a key path and value like \A\, \B\, \A\C\, \A\C\D\, \A\E\, \A\E\F\. I want to find the ones which have only 1 segment. It means the result should be \A\ and \B\. I use Regular Expression /^\\[^\\]*\\$/,…
Melkor
  • 532
  • 8
  • 25
4
votes
1 answer

Variable Escape sequences in java

Take the example: System.out.println("Hello Uni\u03C0"); System.out.println("Hello Esc \\"); this gives something like Hello Uniπ Hello Esc \ Is there a way where I can give different values to 03C0 and \ during different iterations in a…
user3015246
  • 139
  • 1
  • 2
  • 9
4
votes
1 answer

Check range of Unicode Value of a character

In Objective-c... If I have a character like "∆" how can I get the unicode value and then determine if it is in a certain range of values. For example if I want to know if a certain character is in the unicode range of U+1F300 to U+1F6FF
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
4
votes
2 answers

Six digit unicode escaped value comparison

I have a six digit unicode character, for example U+100000 which I wish to make a comparison with a another char in my C# code. My reading of the MSDN documentation is that this character cannot be represented by a char, and must instead be…
Iain Sproat
  • 5,210
  • 11
  • 48
  • 68
3
votes
1 answer

Error with Unicode escape character U+001B knitting .rmd to .pdf

When trying to knit my rmd file, I'm getting this error - ! LaTeX Error: Unicode character ^^[ (U+001B) not set up for use with LaTeX. Error: LaTeX failed to compile Task1-Final.tex. See https://yihui.org/tinytex/r/#debugging for…
1 2
3
21 22