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
0
votes
4 answers

Python unicodeescape issue

I worked all day with no result in converting integer to the string of form "\x.." at the Python 3.2. When ascii conversion was used or other I get '0x..' or '\\x..', which is not proper for me. Any bytes or unicode ("\u92") adding operations…
user1536379
  • 1
  • 1
  • 1
-1
votes
2 answers

Escaped unicode characters are escaped again with StringEscapeUtils.escapeXml

I have a text "Begünstigter" which I'm trying to escape the character 'ü' with StringEscapeUtils.escapeXml. As the code for 'ü' is ü, I would expect the method to return Begünstigter. However, StringEscapeUtils.escapeXml is somehow doing…
Eda
  • 93
  • 9
-1
votes
3 answers

right single quote not decoded correctly

Consider the following text: sample_text = "The fox's color was \u201Cbrown\u201D and it’s speed was quick" Notice that there is a regular single quote in "fox's" and a right single quote in "it’s" So my purpose is to get the original text…
impy
  • 31
  • 7
-1
votes
1 answer

How to convert "\\u0301" to "\u0301"

The problem that I met is that Given a string contains several special substrings like: "\\u0301" "\\b" "\\t",..etc Please convert all special strings above into "\u0301","\b","\t", ..etc Note that if just removing a backslash here, you will get a…
WeiAnHsieh
  • 33
  • 4
-1
votes
1 answer

What is the JavaScript Escape code for Unicode Carriage Return?

If I ever need to include a newline in a HTML title attribute tooltip, I use the HTML Escape Character for Carriage Return: Example: Apparently, also works, so I'm unclear where I…
Rounin
  • 27,134
  • 9
  • 83
  • 108
-1
votes
2 answers

Romanian Hex Escape Codes?

I am translating stuff from an application to Romanian (already did German), and I need hex escape codes for ă â ș ț î. Like the German "ü" is \x81, are there hex escape codes for those Romanian characters? I couldn't find any after 30 minutes of…
Kerb Space
  • 11
  • 2
-1
votes
1 answer

How can I remove escaping '\' in my string to decode encoded letters?

I'm working on a project with a dataset coming from Board Game Geek. The issue I have concerns the name of the games I'm studying. I think the encoding worked bad so I have encoded letters in the csv file I received. For example : Orl\u00e9ans…
-1
votes
1 answer

Streaming with Tweepy: converting unicode characters to letters

The tweets I capture when streaming with Tweepy come in Unicode special characters and I need them to be letters. I have found many solutions on the site but none of them seemed to work or even to apply to my case, since I’m collecting tweets in…
yuko
  • 3
  • 3
-1
votes
1 answer

python reverse unicode text into readable

i believe i have similar problem to this how to convert unicode text to utf8 text readable? but i want a python 3.7 solution to it i am a complete newbie, i have some experience with python so i am trying to use it to make a script that will convert…
-1
votes
2 answers

Interpret string as escaped string

Why doesn't this work? decodeURI('\n') => newline; decodeURI("\\n") => '\n', thus presumably... decodeURI(decodeURI("\\n")) // => gives '\n' instead of newline But this does? JSON.parse('"\\n"') // => newline Point here is to be able to build a \*…
Karric
  • 1,415
  • 2
  • 19
  • 32
-1
votes
2 answers

How to escape special characters in string for Python 2.7

I'm looking to escape special characters in string for Python 2.7. For example, if I have : str = "You're the best "dog" on earth." I would have : str = "You\'re the best \"dog\" on earth." I want it because I'm inserting strings in SQL database…
Jaky Chane
  • 85
  • 1
  • 2
  • 10
-1
votes
1 answer

Convert to %F0 %9F %8C %A0

I know is %F0 %9F %8C %A0 but how can I convert this to be usable in Delphi ? I tried several html encoders , but none give this result my test for i := 1 to length(s) do result:= result+IntToHex(ord(s[i]),2); but my result is D83CDF20
multi pid
  • 77
  • 7
-2
votes
1 answer

Program not running because of "underscore"

I made a program to print an ASCII table up to a certain range (like ASCII from 0 to 104). #include int main(void) { int n; printf("\n\nthis program will print list of ASCII values for your computer enter the upper limit for the…
-2
votes
1 answer

Function requires a path. How do I make it into a raw path?

I wrote a function in Python that takes a file path as an argument. Ideally, I would like to 'concatenate' an r at the beginning to escape the characters, and turn it into r"C:\User\name\location". I am having trouble finding any solutions- are…
shuaf98
  • 55
  • 1
  • 1
  • 5
-2
votes
1 answer

Can I use Unicode in a C# Console Application?

I tried to use this code: But I get this all the time: Is there a way to "convert" this?
AppleTree
  • 19
  • 2
1 2 3
21
22