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

'ascii' codec can't encode character x

I am trying to write some special characters to .csv file. My code is here: fp = open(csv_file, 'w') test = [] test.append(unicode('òHeyàù', 'utf-8')) fp.write('\t'.join(test[0].encode('UTF-8'))) fp.write('\n') This is the output: òHeyÃù which…
Braiano
  • 335
  • 6
  • 26
0
votes
0 answers

URI decoding in Nginx location block

I have reverse proxy nginx setup with the configuration. upstream cluster { least_conn; server 192.168.4.137:8001; server 192.168.4.137:8002; } server { listen 8000; server_name …
Anurag Upadhyaya
  • 301
  • 2
  • 6
  • 17
0
votes
1 answer

NAudio Mp3 decoding click and pops

I followed this NAudio Demo modified to play ShoutCast. In my full code I have to resample the incoming audio and stream it again over the network to a network player. Since I get many "clicks and pops", I came back to the demo code and I found that…
peregrinus
  • 147
  • 1
  • 12
0
votes
0 answers

Python can't decode the given encoded bytes string

I'm trying to decode a byte string after detecting the type of encoding it has gone through. The string is: \xa1\xb6\xb0\xb5\xd2\xb9\xa1\xb7\x00\x02\x00`\xeb\x03h\x10\xeb\x03\x03\x12+\x00\n\xfe\n\x03 The detected encoding is big5, when I try to…
SilentFlame
  • 487
  • 5
  • 15
0
votes
1 answer

cant figure out how to read from utf-16 file and syslog it out to utf-8

I am trying to take a file that is in UTF-16 format and then syslog it out to a syslog server in UTF-8 format. i am pretty new to python and programming. Everything is working except that it's not sending it out as UTF-8 in the syslog.…
Rlourenco
  • 3
  • 3
0
votes
2 answers

escape character & stopping parsing

I am trying to parse some data using nsxmlparser, whenever there is a &(ampersand) present in the text being received it just stops reading the parsed data. How can I read & normally, similar to other normal characters. Thanks Pankaj
pankaj
  • 7,878
  • 16
  • 69
  • 115
0
votes
1 answer

algorithm with Q codes? What algorithm is used here?

Does anyone know what kind of algorithm is used to generate the Q codes? 200000 : Q1O 200001 : Q1P 200002 : Q1Q 200003 : Q1R 200004 : Q1S 200005 : Q1T 200006 : Q1U 200007 : Q1V 200008 : Q1W 200009 : Q1X 200010 : Q1Y 200011 : Q1Z 200012 : Q20 200013…
kabus
  • 899
  • 1
  • 11
  • 20
0
votes
1 answer

How to decode ASN.1 Per in Android?

I have a binary or hex decimal information which is encoded using the ASN.1 PER aligned and unaligned type(ASN.1 PER ISO 8825-2) from an NFC tag. Is there any library supports the encoding and decoding of this data for android? How to convert the…
Bijesh P V
  • 798
  • 7
  • 14
0
votes
1 answer

How do I decode an image url Jquery

I have an image URL that has been encoded to escape the slashes. https:\\/\\/s3-eu-west-1.amazonaws.com\\/adido-toolbank\\/Thumbnails\\/F\\/FLV26461.JPG How do I go about decoding this URL in jquery? decodeURI and decodeURIComponent are not…
0
votes
0 answers

How to decode "Сверд..." data format (name of region in Russia) in .csv file to English in R?

I am working on a project on Machine learning. When I download the .csv file, some of the features have values in an unknown format. Something like СвердловÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°Ñть and Личные вещÐ. These represent the names of regions…
Nikhil
  • 37
  • 7
0
votes
2 answers

What is the type of this barcode found on some optical discs?

The barcode is found on the clear side of some CDs and DVDs (all of them bearing "DADC", "Sony DADC" or "Sony Music" somewhere on the ring) There are only two widths and they are always in the configuration 1,2 or 2,1. I'll treat these as binary 0…
mossymountain
  • 175
  • 1
  • 7
0
votes
1 answer

Python: Decoding base64 encoded strings within an HTML file and replacing these strings with their decoded counterpart

Please help because this flipping program is my ongoing nightmare! I have several files that include some base64 encoded strings. Part of one file for examples reads as…
lgjmac
  • 133
  • 1
  • 10
0
votes
1 answer

Invalid string in encoding image to base64 - Swift 4

my issue is when I try to encode an image to base-64, it generate a long string (up to 200,000 lines) and it doesn't work in the decoding, it generate a nil image! even I try to resize the image to a smaller size but still it doesn't work! Here is…
Noura Aziz
  • 57
  • 1
  • 7
0
votes
2 answers

How to decode the message from a Huffman Encoded bit stream?

How to decode the message from a Huffman Encoded bit stream? I am not clear about the idea of Huffman Algorithm. As far as I understand it, Suppose I am given a text message "My name is XYZ". Then the encoding process goes this way: 1. Count the…
user366312
  • 16,949
  • 65
  • 235
  • 452
0
votes
1 answer

Reverse hashing function

I'm trying to understand how a system I'm working on creates some hash code starting from a numeric code. I'm collecting some of these pairs “small_number, big_number”, but I cannot figure out how the system encodes small_number to obtain…
Ivan Morgillo
  • 2,837
  • 4
  • 30
  • 46