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 decode string with unicode in python?

I have the following line: %7B%22appVersion%22%3A1%2C%22modulePrefix%22%3A%22web-experience-app%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/%22%2C%22 Expected…
kshnkvn
  • 876
  • 2
  • 18
  • 31
0
votes
2 answers

Get the Unicode from a Hexadecimal

I've been searching for a solution to my problem for days but can't get a spot-on answer when looking at previously answered questions/ blogs / tutorials etc. all over the internet. My aim is to write a program which takes a decimal number as an…
moeux
  • 191
  • 15
0
votes
1 answer

Split string by escape character

I'm trying to split a string by the escape character in Python. This is the way I've been trying to do it: s = "C:\Users\as\Desktop\Data\pdf\txt\RTX_IDS_1DYS_20170610_0000_220279611-650000624200.txt" s.encode("string_escape").split("\\") When I run…
Alan
  • 129
  • 1
  • 13
0
votes
1 answer

Can't read a jpeg with skimage

I'm trying to run this code but it does not work. google- I look, but I have not found the answer, but I look in vain here from skimage import io photo = io.imread('C:\Users\comp\Desktop\Urban.jpg') type(photo) The answer should be as…
0
votes
2 answers

Convert Hindi text to Escaped Unicode character with php

I want to convert hindi / Devanagari text for example "आए थे पर्यटक, खुद ही बह ग" into Unicode escaped characters like "\u0906\u090f \u0925\u0947 \u092a\u0930\u094d\u092f\u091f\u0915, \u0916\u0941\u0926 \u0939\u0940 \u092c\u0939 \u0917". I am…
Johny Sharma
  • 55
  • 11
0
votes
0 answers

PyZillow not returning property details

I'm trying to get the PyZillow API to return the property_size attribute, but the code is throwing an error I'm not sure I understand. Below is my code: from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults,…
aacealo
  • 141
  • 1
  • 2
  • 14
0
votes
2 answers

Render encoded HTML Characters

This is possibly an odd query, As part of a JavaScript component on a page, I am displaying the titles of several blog posts pulled from WordPress. The WP site is maintained by a marketing team. Occasionally they use characters in the title which…
Jonny
  • 59
  • 1
  • 7
0
votes
2 answers

Is it possible to use unicodes with hex values over 0xFF with Keil uVision 5?

I am trying to print ∆ to console. I tried printf("\u0394"); but got the following error: ../Src/main.c(322): warning: #3488-D: Unicode character with hex value 394 not representable in the system default code page. Am I missing an #include or…
Dorian
  • 11
  • 3
0
votes
2 answers

I have found two non-printing characters in a database, what do they mean?

Seems a database I am working on, had two non printing characters that was messing something up down the line. After doing some digging, the computer shows them as â, then U+0080 then U+0093. Any idea what these characters could mean? I suspect its…
0
votes
1 answer

How do I convert unicode characters (ASCII 10) to text in Python

I'm using http.client.HTTPConnection request result in Python. Result is like : \u000aFull command = \/opt\/ericsson\/amos\/moshell\/mobatch \u000a Hello I want to convert this into standart text for my next parsing operation response =…
Omrum Cetin
  • 1,320
  • 13
  • 17
0
votes
1 answer

Characters in attributes being converted to unicode

I'm adding HTML Tag Attributes to a section in a Gantry 5 layout, using the section's settings. But any special characters are rendered as Unicode Hex Character Codes in the resultant HTML. So adding the tag data-0 to the…
0
votes
1 answer

Python - String formatting convert escaped characters to literals

I have to send a string request to a backend. I have 2 variables which I have to format inside the string with the request. The request has to look like this: "{\"MachineType\":0,\"BrokenMachines\":6}" I have 2 variables called type and count…
Nahue
  • 320
  • 2
  • 18
0
votes
1 answer

JavaScript NPM Package for escaping xml to handle special characters but leave the xml tags alone

Does anyone know of a javascript npm package which will escape the values in an xml document but leave the xml tags alone? It would be great if we could just include the letters a through z both upper and lower case and the digits 0 through 9 and…
Gregory Williams
  • 453
  • 5
  • 18
0
votes
1 answer

PHP: How to match a range of unicode paired surrogates emoticons/emoji?

anubhava's answer about matching ranges of unicode characters led me to the regex to use for cleaning up a specific range of single code point of characters. With it, now I can match all miscellaneous symbols in this list (includes emoticons) with…
CPHPython
  • 12,379
  • 5
  • 59
  • 71
0
votes
1 answer

I can't recreate the JSON object from unescaped Java string of JSON

I am facing some issue in the following code. import org.json.JSONObject; /** * * @author ajmalsha * */ public class test { /** * * @param args */ public static void main(String[] args) { String…
Ajmal Sha
  • 906
  • 4
  • 17
  • 36