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
1 answer

How to send escape sequences via UART, using Embedded C code

I need help in sending a specific escape sequence, using Embedded C. This is my very first topic at stackoverflow! I use this function to write commands through UART: void UART_Write(UARTChannel* channel, uint8_t* data, uint32_t length) The…
S. Lund
  • 3
  • 2
0
votes
1 answer

How to convert "\uxxxx\uxxxx" to u'\Uxxxxxxxx'?

I have a text file who is filled with unicode characters as "\ud83d\udca5" but python don't seem to like them. But if I replace it by u'\U0001f4a5' which seems to be his python escape style (Charbase), it works. Is there a solution to convert them…
DasFranck
  • 379
  • 3
  • 11
0
votes
2 answers

Error reading csv file unicodeescape

I have this program import csv with open("C:\Users\frederic\Desktop\WinPython-64bit-3.4.4.3Qt5\notebooks\scores.txt","r") as scoreFile: # write = w, read = r, append = a scoreFileReader = csv.reader(scoreFile) scoreList = [] for row…
0
votes
1 answer

\b not clearing last character in a specific instance

class progReport extends Thread { // function for clearing the line by printing escape char '\b' private static void cls(){ for (int i = 0; i <50; i++) { System.out.print("\b"); } } //End of cls …
0
votes
1 answer

Does unicode allow for multilevel bracketable subscripts like math does?

Consider the following math expressions (which are not equivalent): (e^x)^y e^(x^y) Can I write these in Unicode (with unlimited number of bracketable subscripts)?
0
votes
3 answers

Print Unicode characters with hex code loop

I'm getting illegal unicode escape for the following code. for(int i=3400;i<4000;i++) System.out.println("\u" + i ); If I add a slash before I get \u3400 as output instead of actual unicode character. I want to print the unicode characters in a…
Sorter
  • 9,704
  • 6
  • 64
  • 74
0
votes
1 answer

Python some escape sequences do not work

I have tested out some escape sequences. Most of them work, but some of them do not. Why is this? This is the code I wrote for testing the escape sequences: # -*- coding: UTF-8 -*- tabby_cat = "\tI'm tabbed in." persian_cat = "I'm split \non a…
Johan Vergeer
  • 5,208
  • 10
  • 48
  • 105
0
votes
1 answer

New line chars in AlertDialog Android

I'm receiving a string from a windows application, the string is like this: "some text\r\nsome other text" When I display the string in an alert dialog I see the following: "some textrnsome other text" The same string is showing correctly on a…
JustADev
  • 258
  • 1
  • 8
  • 19
0
votes
2 answers

How to get the real characters from its raw utf format in Java

I have some chinese charactors encoded like this: String b = "\\u91d1\\u5143\\u6bd4\\u8054\\u6210\\u957f\\u52a8\\u529b"; How can I change the string b into the real characters, I found the below c can be shown when I output it in the console, then…
virsir
  • 15,159
  • 25
  • 75
  • 109
0
votes
1 answer

What is the difference between a string with escaped unicode characters and non-escaped unicode characters in javascript strings?

In javascript, especially in JSON, we can represent unicode characters with escape sequences or direct unicode string. How does the two differ? Is there any practical implications or pitfalls in using one over another?
0
votes
1 answer

Percent encoding a non extended ascii char like extended chars

If we percent encode the char "€", we will have %E2%82%AC as result. Ok! My problem: a = %61 I already know it. Is it possible to encode "a" to something like %XX%XX or %XX%XX%XX? If yes, will browsers and servers understand the result as the char…
user3686362
0
votes
0 answers

What is this format of text encoding ? Are there any build in methods to deal with it in c++?

Deal, I mean to for example to convert to a proper std::wstring with all letters in human readable format. Example: Al elmaya ta\305\237 atan \303\247ok olur. Al elmaya taş atan çok olur. Za\305\274\303\263\305\202\304\207…
rsk82
  • 28,217
  • 50
  • 150
  • 240
0
votes
1 answer

Xaml: < and > in Attributs like: Text="<- vor"

I want to write something as that what I wrote in the title in a XAML attribute. I know I have a book in that it stays but its a really thick book and I dont find it anymore. Also I cant search it with Google, because it dont accept chars like < , >…
HenrikD
  • 241
  • 2
  • 10
0
votes
1 answer

How to convert from unicode escape sequence to UTF-8

How can i convert unicode escape sequence to UTF-8. The sequence are \uXXXX Is there a functionality in POCO for it?
0
votes
2 answers

How to use unicode escape sequence with variables?

This is the code I currently have to concatenate a then b then c and so on in a loop (scanned number of times) using java: public String toString() { String answers = ""; int numChoices = choices.length; char letter; String result; int…
TCob
  • 21
  • 1