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
2 answers

How to substitute '\N' in a string using python as it is leading to unicodeescape error?

import re import string a= """ Message-ID: <13505866.1075863688222.JavaMail.evans@thyme> Date: Mon, 23 Oct 2000 06:13:00 -0700 (PDT) From: phillip.allen@enron.com To: randall.gay@enron.com Subject: Mime-Version: 1.0 Content-Type: text/plain;…
Atul
  • 1
  • 2
0
votes
1 answer

Using Unicode Values in C#

I am getting this weird occurrence when using unicodes in my application. I have a list of random unicodes which I then randomly assign to an object. var icons = new List { "\uf022", "\uf039", "\uf02b", "\uf1b2", "\uf07b" }; When I debug…
Bad Dub
  • 1,503
  • 2
  • 22
  • 52
0
votes
2 answers

Difficulties unescaping Unicode sequences

I have a few large JSON files from a source I don't control that I'm trying to clean up in Notepad++ before using them as program input. The file contains a lot of unicode sequences, which I unfortunately know very little about. It's the type using…
Don
  • 1
0
votes
2 answers

How to Update the console output in java?

I have to update my console. Here is an example code: public class Tester { public static void main(String[] args) { System.out.print("abcd\n"); System.out.print("efgh"); System.out.print("\r\r\rijkl"); } } My…
Dhanasekaran Don
  • 294
  • 1
  • 14
0
votes
0 answers

Escape sequence in subject line emails - malicious?

CentOS release 6.9 Exim version 4.89_1 I was running the excellent tool ecpp_2.pl - Version: 20150612 by Michael Karr which scans a server for all outbound emails from all programs and identifies suspicious entries - it's a great tool for quickly…
jeffschips
  • 147
  • 1
  • 8
0
votes
0 answers

can,t able to save hindi unicode character into mongodb for multiple fields

can,t able to save hindi unicode character into mongodb for multiple fields const WordsSchema = mongoose.Schema({ word1:{ type: String, required: true, language_override:"Hindi" }, word2:{ type: String, required:…
0
votes
1 answer

jQuery parsing unicode characthers in a string

I have a string which basically looks like this: 20 pcs 1/4" d 13/32" l shank copper round head solid rivets fasteners or : 20 Pcs 1/4" D 13/32" L Shank Copper Round Head Solid Rivets Fasteners Where " should be represented as:…
User987
  • 3,663
  • 15
  • 54
  • 115
0
votes
1 answer

Swift, separate strings from file txt

I have this file text and I want to put this in an [[String]] in order to have it like this: [ ["Quanto tempo dopo il risveglio fumi la prima sigaretta?", "Entro 5 minuti", "Da 6 a 30 minuti", "Da 31 a 60 minuti", "Dopo 60 minuti"], ["Ti riesce…
Elia Crocetta
  • 318
  • 1
  • 6
  • 20
0
votes
1 answer

How to escape back slashes '\' in a Java string while ignoring all the places where '\' is used for escaping standard characters?

I want to escape back slashes in a Java string. I tried to use the below code- public static String escapeString(String str) { return str.replace("\\", "\\\\"); } This works like a charm. But, then I noticed that I also have some scenarios where…
Sudip
  • 647
  • 2
  • 7
  • 28
0
votes
2 answers

Decoding multiple encoded string

How do I decode this to get the result…
user8098743
0
votes
3 answers

Need a help in adding escape sequence to all elements in a list which later use for unicode

>>> n ['de', 'db', 'aa', 'dC', 'be', 'Ad', 'Da', 'a7', 'Cb', 'Cc', 'Ed', 'D7', 'CA', 'Da', 'db', 'aa', 'bD', 'db', '7d', 'Ad', 'c4', 'DA', 'Ba', 'bD', 'cc', 'DC', 'da', 'dd', '2d', 'CD', 'bA', 'dA', 'EC', 'Cb', 'dC', 'aC', 'Dd', 'ec', 'CD', 'Ae',…
udaya
  • 77
  • 8
0
votes
1 answer

Eval on tricky string forms of defaultdict

Somehow, I'm handed a text files of defaultdict saved using the str() method and the utf8 string reads: defaultdict(, {'protection': {'1058c_204062v_00:39:16->00:39:18_ko'}, 'protect': {'50c_45523v_00:01:22->00:01:24_ko',…
alvas
  • 115,346
  • 109
  • 446
  • 738
0
votes
1 answer

Regex in SQL Server select like query with Unicode character properties

Is it possible to use Unicode character properties in a SQL select query with regex? I would like to find tables in an existing database with names violating a set of rules. For example any table name which contains any of the :Sm Unicode characters…
MOS
  • 137
  • 1
  • 8
0
votes
1 answer

Can not use \u in python

I am newbie in python so bear with me, I am learning python from 'Learn Python The Hard Way', I learned about escape sequences but I am not able to use \u. I have tried print "\U0001F47E" , print "U\U0001F47E" , print "U'\U001F47E'", print…
bha159
  • 211
  • 3
  • 14
0
votes
2 answers

ZK internationalization: UNICODE instead of accented character

My application uses Labels for internationalization. In all pages, the accented characters are shown as unicodes. E.g., à ---> \u00E0 I have no idea which can be the problem and I can't find any useful documentation on this topic: I only found…
baronKarza
  • 513
  • 6
  • 23