Questions tagged [unescapestring]

20 questions
8
votes
1 answer

Flutter - Remove escape sequence in dart

To decode API response string to JSON, json.decode() works fine. This will parse a JSON string similar to { "Response" : {"Responsecode" : "1" , "Response" : "Success"}} But in my case, the response comes in the serialized form like: …
Abhishek Aggarwal
  • 207
  • 2
  • 4
  • 13
5
votes
2 answers

Android - Weird EscapeUtil.unescapeString crash

I am getting a crash on receiving a JSON string from our applications server. We believe that when an entry has "quotes", there are extra escapes added. In android, how can I determine if I receive such a string , and how do I fix it from the…
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
2
votes
1 answer

Unescape twice escaped title in rss

I got some rss with strange escaped titles, for example: S&P 500 : Wall Street amorce un rebond, Binance fait l'objet d'une enquête de la SEC the whole rss:…
Vladimir Bershov
  • 2,701
  • 2
  • 21
  • 51
2
votes
0 answers

Convert escaped string to json object in java

I have a string that looks like this.. "Message" : "{\"eventType\":\"DataChanged\",\"operation\":\"create\"}" Is there any library in Java that can convert this to the string below so I can then parse it into a json object "Message" :…
user1066568
  • 717
  • 3
  • 15
  • 32
2
votes
2 answers

How to correctly unquote url which is supposed to contain Japanese symbols

I have the following string for example (which was built as I realized from incorrectly encoded…
2
votes
1 answer

Java URI escaper which works like the Javascript's unescape

I have a string like http://google.com/search/q=<%= name %>. A third party js library that I have no control over is escaping this to "http://google.com/search/q=%3C%=%20name%20%%3E" which Javascript can successfully unescape to the original string…
ccpizza
  • 28,968
  • 18
  • 162
  • 169
1
vote
0 answers

Unescape quotes inside an XML string in JavaScript

I want to unescape the quotes in the following XML/svg string. "
JuToGe
  • 71
  • 5
1
vote
2 answers

Decode/Unescape Unicode Google App Scripts

I am new to decoding hence I am unable to decode below response while using UrlFetchApp. Below is the function I am using to fetch data but getting values in unicode which I need to decode. Any function that I can use to decode this? function…
Athar K
  • 191
  • 3
  • 18
1
vote
1 answer

Replacing special characther in string with ampersand

I have a URL which basically looks like this: https://example.com/us/cgi-bin/webscr?cmd=_express-checkout\u0026token=EC-2BF46053LU471230V The URL is generated from a statement like following: if ((int)response.StatusCode == 200 ||…
User987
  • 3,663
  • 15
  • 54
  • 115
1
vote
1 answer

How HTML React only Unescape some code

I have a some code let red = 'red' let blue = 'blue' let formula = "1+2" let answer = "3" let string = ""+formula+""+"="+""+answer+"" 111 In render's return
Noel Chung
  • 75
  • 1
  • 8
0
votes
0 answers

How to convert escaped strings into Postgres JSON

I have inserted the escaped string into jsonb column of table in pgadmin. as below Table name: tbl1 1. In this table I have a jsonb type column named as "info_data(jsonb column)" By my mistake I have inseerted escapped string in this jsonb column…
vivek
  • 1
  • 1
0
votes
0 answers

shell script capture variable without formatting escape characters

I am running an .sh script from wsl bash. Inside the script I want capture a file path, into a variable, in order to pass it to cmd.exe like so: my_win_path= cmd.exe /c "$my_win_path" However when I try to…
0
votes
1 answer

Remove escaped Quotes in File Output

I am processing an XML in Excel, and I want to export the final value to a file. The XML is in a cell, and I am writing it using Open and Write of VBA. While doing so, I get the XML from the Cell all within one pair of quotes. The values of tag…
0
votes
1 answer

replace pattern with newline in shell variable

A script save.sh uses 'cp' and outputs its cp errors to an errors file. Mostly these errors are due to the origin filesystem being EXT4 and the destination filesystem being NTFS or FAT and doesnt accept some specia characters. Another script…
JLuc
  • 333
  • 5
  • 15
0
votes
2 answers

Unable to remove Escape sequences using Regex.Unescape in C#

I want to remove all the escape sequences from the below string which I get from Pokemon API. "A strange seed was\nplanted on its\nback at birth.\fThe plant sprouts\nand grows with\nthis POKéMON." I have used Regex.Unescape("A strange seed…
Ash
  • 447
  • 2
  • 6
  • 19
1
2