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

Get proper list from list of unicode list

I have a list with a unicode string in a form of a list. my_list = [u'[James, Williams, Kevin, Parker, Alex, Emma, Katie\xa0, Annie]'] I want a list which I am able to iterate such as; name_list = [James, Williams, Kevin, Parker, Alex, Emma, Katie,…
Rachel
  • 247
  • 6
  • 19
-3
votes
1 answer

How to escape a string with single quotes

I am trying to unquote a string that uses single quotes in Go (the syntax is same as Go string literal syntax but using single quotes not double quotes): '\'"Hello,\nworld!\r\n\u1F60ANice to meet you!\nFirst Name\tJohn\nLast Name\tDoe\n' should…
Ken Shibata
  • 71
  • 1
  • 9
-3
votes
1 answer

How do I do this in python?

This is vb6 code Dim i As Long, mystr As String For i = 0 To 9 mystr = mystr & "\u000" & i & vbCrLf Next Me.Text1.Text = mystr The output has to be: \u0000 \u0001 \u0002 \u0003 \u0004 \u0005 \u0006 \u0007 \u0008 \u0009
JoePythonKing
  • 1,080
  • 1
  • 9
  • 18
1 2 3
21
22