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

PHP Array JSON encoding and decoding in REST not working

I have the following problem. This data in this structure $transfer = {stdClass} [4] module = "Member" action = "create" token = null params = {stdClass} [3] username = "Test" email = "test@test.com" password…
Perino
  • 608
  • 9
  • 30
0
votes
1 answer

Why does Msgbox display question marks instead of spaces that appear in text body?

dim oEmail As Outlook.mailitem dim textbody as string textbody = oEmail.body msgbox textbody Some incoming mail (foreign and domestic) contents appear fine in Outlook, but when I run the above macro program, the message box (variable textbody)…
Barok
  • 151
  • 1
  • 15
0
votes
0 answers

How to encode ??

During my research I've found these information but it seems like they are not really matching to my problem. http://www.cplusplus.com/forum/beginner/31776/ Base 10 to base n…
user9507127
0
votes
2 answers

Decoding emoji: it has a strange format I can't find elsewhere

This is the string I got: %uD83D%uDE0C I'm pretty sure it is an emoji, but when I try to decode it with this library: https://github.com/BriquzStudio/php-emoji, it does not work. I also tried that library with php's urldecode function but with no…
joostdelange
  • 113
  • 11
0
votes
4 answers

How to make each letter of a string a variable in python

I'm trying to make a encoder in python Here is the code so far. It works fine but i want to change each letter in the string to the corresponding number eg: a=1, b=2. so then it would end up as a number sentence. My aim is to have 2 programs, one…
0
votes
4 answers

Java run length decoding (expanding a compressed string)

public static String decompressString (String text) { int count = 0; StringBuilder result = new StringBuilder () ; for (int i = 0; i < text.length(); i++) { char c = text.charAt(i); if (Character.isDigit(c)) { …
cise
  • 69
  • 1
  • 8
0
votes
0 answers

How to extract a fixed number of frames starting from specific frame with ffmpeg?

I'm developing some GUI, which, among other things, implements video player with a step-by-step option. Using this option, I want to assign the start and end frames for the sequence which I want to extract (in a row YUV420 format) from a mkv file. I…
shuch
  • 1
  • 2
0
votes
1 answer

JavaScript code encoded

I have a javascript code but she is encoded i wanna to decode it beacouse i gonna to change the functions so i dont have any idea how is she encoded and how to decode it. Here is a part of code function updateTitle(_0x3c9303)…
0
votes
0 answers

React JS Base64 image returned but cannot be decoded

So I have an image cropper and its allowing the user to set the size of the image. The image returned after it is cropped is in this form: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtwAAALcCAYAAADUqWdpAAAgAElEQVR4Xux9... However, when I try to…
J Dorrian
  • 206
  • 3
  • 15
0
votes
0 answers

illegal input sequence at position : convert a file from Big5 to UTF8 using unix

I tried to convert a file from Big5 to UTF8 using the iconv command. I am getting the error : illegal input sequence at position 18876 iconv -f BIG5 -t UTF8 doc_full_list.csv > doc_full_list.csv.out When I used Apache Nifi 'ConvertCharacterSet'…
ForeverLearner
  • 1,901
  • 2
  • 28
  • 51
0
votes
2 answers

Utf-8 decoding with Python

I have a csv with some data, and in one row there is a text that was added after encoding it in utf-8. This is the text: "b'\xe7\x94\xb3\xe8\xbf\xaa\xe8\xa5\xbf\xe8\xb7\xaf255\xe5\xbc\x84660\xe5\x8f\xb7\xe5\x92\x8c665\xe5\x8f\xb7…
Madmartigan
  • 453
  • 1
  • 5
  • 14
0
votes
1 answer

How to use encoded text as a string

I want to write an encoded text to a file using Python 3.6, the issue is that I want to write it as a string and not as bytes. text = open(file, 'r').read() enc = text.encode(encoding) # for example: "utf-32" f = open(new_file,…
Y. Serrouya
  • 41
  • 1
  • 10
0
votes
2 answers

Error 'UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 1: invalid start byte' decoding bytes after decrypting with pycryptodome

My problem is that when I use pycryptodome for decrypting a string in Python 3.6 with the following code: from Crypto.Cipher import AES from Crypto import Random key = "133BBB3212332231" key_bytestring = key.encode("utf-8") iv =…
edusan1213
  • 359
  • 5
  • 15
0
votes
0 answers

Base64 decode in javascript and encode in php

I am facing a major issue in encoding/decoding a base 64 image. My purpose is to save a canvas image as base64 decoded string that can later be base64 encoded in php. I have the javascript code as follows: var string=…
gapc311
  • 463
  • 2
  • 6
  • 15
0
votes
1 answer

Unable To Decode Data Objective-C

I'm connected to a socket that send me data. But i'm trying to convert the data to a string, but it is not working. Before the conversation: <6d020000 7b225265 73756c74 223a302c 22547970 65223a22 4664732e 49464150 492e4150 49416972 63726166…
Sudafly
  • 21
  • 5