Questions tagged [decoding]

Decoding is the reverse of encoding.

Decoding is the reverse of , which is the process of transforming information from one format into another understandable by a receiver. In communication theory and coding theory, decoding is the process of translating received messages into codewords of a given code. Like encoding, decoding applies to information of various forms:

1741 questions
0
votes
1 answer

sed decodes html encoding. Need explanation how

Following sed expression decodes HTML URL Encoding (exactly as required): sed 's/%/\x/g' HTML encoding reference can be found here: http://www.w3schools.com/tags/ref_urlencode.asp However, I can't get how it works. Regex seems to say: find "%" and…
Top
  • 3
  • 1
0
votes
2 answers

UTF-8 decoding problems

I am getting crazy with UTF-8 decoding of some URLs. I am using URLDecoder.decode (java.net.URLDecoder) to decode some URLs with special chars. As you can see below for some location names in the URL the decode works and for some it does not ...…
0
votes
1 answer

Should Generic URL Decoding Functions Handle "+" Chars or Just "%20" etc. Chars?

I am wondering if a generic URL Decoding function should handle the "+" character (space) in addition to all of the e.g. "%20" etc. encodings? There is no specific use case as of yet. Is there any spec that would be appropriate to reference here? I…
GWR
  • 1,878
  • 4
  • 26
  • 44
0
votes
0 answers

URL encoding/decoding with perl

What is the best way to decode a url string in…
Omer Dagan
  • 14,868
  • 16
  • 44
  • 60
0
votes
1 answer

Python hex decoding shows wrong result for special charters

I tried to decode a hex string but special characters. When I run codecs.decode("5469eb73746f2026204b53484d5220666561742e205661737379", "hex") I get b'Ti\xebsto & KSHMR feat. Vassy' but I want Tiësto & KSHMR feat. Vassy I checked the Hex code…
cre8
  • 13,012
  • 8
  • 37
  • 61
0
votes
2 answers

Approach to encoding/decoding nontrivial property of a class in Swift

Original Post I have a class that I'm using NSCoding to encode and decode. I get how to encode basic types like a number or a String, and I'm even chaining NSCoding compliant classes. I also get how to encode an array of these basic types. What I'm…
Tim Fuqua
  • 1,635
  • 1
  • 16
  • 25
0
votes
0 answers

encoding then decoding not giving same output

In this Program : java.util.Base64 library is used. byte[] bytes = "Test String".getBytes(); String s = Base64.getEncoder().encodeToString(bytes); byte[] b2 = Base64.getDecoder().decode(s); if(b2.equals(bytes))…
0
votes
2 answers

Decoding hd video with libstagefright results in garbled video

I am using libstagefright to decode a 1020p video having baseline high and level 31 on android. On emulator the video decoding fails, and i assume the reason is that softavc does not support high baseline according to the code here But I tested this…
Daniyal Yasin
  • 142
  • 1
  • 14
0
votes
1 answer

run time inconsistency DXVA hardware video decoding

I am currently working on a project that involves using DXVA API and the FFmpeg framework to implement hardware-accelerated decoding of H264 video stream files. I have done some research on GPU decoding and constructed my code based on the hardware…
0
votes
0 answers

"5 " in console is read as "ÿ5 "

In javascript, in the console of Google Chrome I write this code: "5 ".trimbegin() trimbegin is a method that doesn't exist. What I get in the error in the console is this: Uncaught TypeError: "ÿ5 ".trimbegin is not a function I am not worried for…
petko_stankoski
  • 10,459
  • 41
  • 127
  • 231
0
votes
1 answer

Decoding Ajax Response in WebKit browser is having issue

Issue: We were having issue with one of the ajax request in webkit browsers ( Chrome, Firefox, and Safari). scenarios working: 1. If we configure chrome/firefox with Fiddler and enable https decryption in fiddler it works as expected. 2. Works…
Vinod N
  • 1
  • 1
0
votes
0 answers

Character Encoding Issue in c#

I have a problem with turkish character while reading string from realtime db. When i read turkish 'ş' character from real-time db, it returns 'ÅŸ'. Ascii codes of the string 'ÅŸ' is 197,376. How to decode this string into turkish 'ş' character…
nihasmata
  • 652
  • 1
  • 8
  • 28
0
votes
1 answer

Android decodeBitmap with size depend on density

I am trying to decode bitmap using only inJustDecodeBounds. But the outwidth and outheight is width the dimensions of the original image. For example if the image is in xxhdpi folder and the phone is with xhdpi density and the image is 500 x 500px…
DPM
  • 1,540
  • 2
  • 18
  • 40
0
votes
0 answers

Make Cyrillic characters appear as they are(without encoding) in browser address bar

Basically, when I put Cyrillic symbols in address bar like this: https://venta.uz/items/men/#?categories=мужское it gets encoded and appears in URL address bar like…
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91
0
votes
1 answer

make excel to understand encoded xml format

To get the physical image path in excel file dynamically, I have to used below…
Frank Myat Thu
  • 4,448
  • 9
  • 67
  • 113