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

How to create an encoder? Decoder?

I am fairly new to programming in general and I was wondering how I could encode/decode text that is inputted. All letters must be brought down 3 letters for ex A -> D B -> E and so forth Ill put in some pseudocode for an example: INPUT MESSAGE:…
Steven Jobs
  • 13
  • 1
  • 3
0
votes
3 answers

Decoding string to array values in javascript

I have 2 strings with some chars. One of them is with "mashed" characters, and the other one is with ordered characters which have some sense. For example: wvEr2JmJUs2JRr:7Fob9WIB8mSOA?w0s2E:7-f/-G/N-.f7jN:Mi:.CDfGX7tn! Identification:…
Fire Bull
  • 227
  • 3
  • 10
0
votes
0 answers

How can I decode a value in Javascript which is encoded with HttpUtility.HtmlAttributeEncode?

I have a HTML element with a data- attribute, which is encoded on the server with HttpUtility.HtmlAttributeEncode So for example: data-id="This is "an example" attribute"> Now I want to read the value in JavaScript and therefor I…
Michel
  • 23,085
  • 46
  • 152
  • 242
0
votes
4 answers

POST String Decoding in PHP

Is ther any built in function in PHP to decode przysi%25C4%2599gam%2520s%25C5%2582u%25C5%25BCy%25C4%2587 into przysięgam służyć ?
clops
  • 5,085
  • 6
  • 39
  • 53
0
votes
1 answer

DICOM - Is Transfer Syntax sufficient for DataSet decoding?

I'm trying to determine the proper way to spread competence between DICOM processing modules. One of the steps is to "take the dataset out of the envelope" by which I mean to decode attributes based on the transfer syntax. Two things i cannot…
Witek
  • 259
  • 1
  • 3
  • 9
0
votes
1 answer

Decoding binary data stored in XML by a third party tool

I'm trying to parse XML files produced by a third party tool ( [HTC Sync Manager][hsm] ) , since said tool refuses to work anymore. XML parsing is simple enough, but I'm stuck with trying to decode binary image data serialized into those XML files.…
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
0
votes
1 answer

Detect whether HTML element contains a specific character entity

If I have markup like this:
and I want to detect later whether div#foo still contains that same character entity, I'd like to be able to do so by comparing it to  rather than to  (which in my code base is…
jinglesthula
  • 4,446
  • 4
  • 45
  • 79
0
votes
1 answer

Unexpected output with zlib_encode()

I'm trying to encode a chunk of binary data with PHP in the same way zlib's compress2() function does it. However, using zlib_encode(), I get the wrong encoded output. I know this because I have a C program that does it (correctly). When I compare…
user966939
  • 692
  • 8
  • 27
0
votes
1 answer

Decode unicode escape characters with PHP

I have multiple text files to translate an application into different languages. These text files come from a Java application and look like this: weather_501=m\u00E4ßiger Regen weather_701=tr\u00FCb weather_731=Sand /…
officer
  • 2,080
  • 1
  • 20
  • 29
0
votes
2 answers

URL decode ä -> ã1⁄4

I have the problem that the decoding from a URL causes some major problems. The request URL contains %C3%BC as the letter 'ü'. The decoding server side should now decode it as an ü, but it does this: ü decoding is done like this: decoded =…
Tobias Kuess
  • 739
  • 2
  • 14
  • 33
0
votes
1 answer

Can I close from the return of utf8::is_utf8 that a decoding layer for STDIN is set or not?

Is it right to say: if a string read from STDIN checked with utf8::is_utf8 returns true then there is set a decoding layer for STDIN? #!/usr/bin/env perl use warnings; use strict; use 5.10.0; use open qw( :std :utf8 ); my $in = ; say…
sid_com
  • 24,137
  • 26
  • 96
  • 187
0
votes
1 answer

Decode MIDI variable length field

How to decode variable length fields in MIDI? The description found at[1] does only give some examples without mentioning what happens if the most significant bit is set. This is my current code: uint32_t MuStudio::MIDI::FileReader::varfieldGet() …
user877329
  • 6,717
  • 8
  • 46
  • 88
0
votes
1 answer

How to decode an encoded string?

While decoding,I am getting NSData bytes by decoding a string.I am converting NSData bytes as string: -(void)decodeAction:(NSString*)str { NSData *data=[NSData base64DataFromString:str]; NSString *stt=[NSString stringWithFormat:@"%@",data]; …
Madan Mohan
  • 8,764
  • 17
  • 62
  • 96
0
votes
1 answer

What's wrong with this base64 decoding objective-c code?

I'm starting to learn Objective-C, and I've tried to compile this code on Debian Wheezy with GCC (GNUStep): #import int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]…
Bartosz Wójcik
  • 1,079
  • 2
  • 13
  • 31
0
votes
2 answers

how to detect wrong encoding

This program write on 2 files. In the right file the string is "IL RITROVO AL 1° PIANO" In the wrong file the string is "IL RITROVO AL 1NUL PIANO". In the second case, the "°" charater has wrong econding; how can I detect this case before I write…
Frizz1977
  • 1,121
  • 13
  • 21
1 2 3
99
100