4,353 questions
2
votes
2
answers
107
views
imap_utf8 not always converting utf-8 text
I have the following simple script, running under PHP 8.3.6
<?php
$original = '"=?utf-8?Q?part1=40part2.com?=" <[email protected]>' ;
$converted = imap_utf8($original) ;
printf("...
4
votes
2
answers
147
views
Is sample accurate decoding from an arbitrary FLAC seekpoint possible?
Is FLAC decoded PCM guaranteed to start at the sample of an arbitrary seekpoint, if we fetch via HTTP range request from the seekpoints noted offset (on a fixed frame size e.g. 1024)?
I encounter ...
3
votes
1
answer
230
views
How to decode and parse JEOL microscope metadata embedded in TIFF tags (binary format)?
I'm working with microscope images captured using a JEOL system, and I'm trying to decode metadata stored in the TIFF tags. The data appears to be in a binary format and when extracted (using tifffile ...
0
votes
1
answer
115
views
How do I decode Jupiter V6 swap instruction data?
So I am trying to decode Jupiter V6 instruction data just like websites like solscan.io do, to see the input token amount, output token amount, mints and such. I've tried to reverse engineer it, every ...
0
votes
3
answers
318
views
How to to parse html data table with characters and x-y coordinates and render them correctly
Here's the problem statement: use a link to a google doc and print the symbols per the x and y coordinates provided in the document. There are two google doc links provided in the assesment:
This is ...
-1
votes
2
answers
104
views
Replacing literal '\uxxxx' in string with corresponding unicode character
I don't want to convert things like \n \r so I can't use unicode_escape directly.
But my code is very slow now, is there any better way?
def only_transform_backslash_u(content):
...
0
votes
1
answer
79
views
Azure functions decoding utf8 strings in Python
I'm running this code on my Python code with version 3.10.6:
def downloadRevistaXML():
url= f"https://revistas.inpi.gov.br/txt/RM2823.zip"
try:
response = requests.get(url)
...
4
votes
1
answer
156
views
Decode output from GET request in R
I'm trying to pull some data using httr::GET but the problem I am facing now is that the response seems to be encoded and I am not sure how I can solve this.
Here is the url of historical data on ...
1
vote
1
answer
99
views
python base64 string - how to decode first 8 bytes
I'm having some problems decoding what should be simple data.
I have a base64 string that represents a np.int64 followed by an array of np.float64. The size of the array is defined by the first np....
0
votes
1
answer
414
views
Data decoding in Solana transaction
I am trying to create a Python code to analyze Solana transactions. Currently I am receiving transactions data in Json formats. In a certain part I think I need to decode a phrase. For example, a part ...
-1
votes
1
answer
602
views
jwt-decode : does not provide an export named 'default'
Context
I'm trying to implement a JWT for authentication in my project. Before the implementation, pages are loading and everything's fine not until I use jwt decode. Pages across the development ...
-1
votes
1
answer
140
views
Custom encryption approach in PHP (like JWT) – is this secure enough [closed]
I'm trying to build a custom token system in PHP that works similarly to JWT. The idea is to encode and encrypt some user data, then send it to the client as a token. Here's the simplified example of ...
0
votes
0
answers
43
views
Python: Convert Protobuf Message to Dictionary
as I haven't found any working example, I raise it here:
I need to capture some response data from a website in python3. To verify it , I can capture the results using a windows tool called "Http ...
0
votes
0
answers
65
views
How to decode protobuf data with a Fabric PySpark notebook using the from_protobuf() method?
I am trying to stream event data from an Azure Event Hub using Spark Structured Streaming from within a Fabric Notebook to a lakehouse. The event data is protobuf and base64 encoded. I wanted to use ...
0
votes
0
answers
67
views
Decode response with headers and body using init from decoder
I'm having hard time trying to decode response. I need response body and one response header and I also need to customize my decoding process using LossyCodableList to make sure parsing will be ...
1
vote
1
answer
204
views
How to avoid `--enable-small` compiling option in FFmpeg causing hevc decoder’s profiles to be null and throwing an error?
When compiling FFmpeg 7.1 with the --enable-small option, I encountered an issue where the profiles field in the ff_hevc_decoder structure is set to null, causing the following error:
Unknown profile ...
0
votes
0
answers
153
views
LI-FI based image transmission using ESP32
Dears, i'm working on a LiFi image transmission project using ESP32 microcontrollers.
I then use 2 microcontrollers, one as transmitter through laser and another as receiver through an LDR. So far, ...
6
votes
1
answer
2k
views
Scraping encoded data from Oddsportal [closed]
Oddsportal.com provides odds data from several betting sites. I've been scraping the data for years but they have recently encoded their data and I haven't found a way to decode it.
Example: https://...
1
vote
1
answer
84
views
Decoding XML content with Vapor Swift
I'm trying to decode a request with XML body in Vapor.
The request content is:
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns=&...
-1
votes
1
answer
124
views
How to decode url like base64
my brothers. I have an encrypted link that is similar to base64. I have tried many times to restore it to its previous state, but to no avail. Is there anyone who can do that?
==...
2
votes
1
answer
89
views
Trying to decode a JSON value that can be a String or Int
Trying to decode a JSON value "edition" that can be a String or Int and found this solution How to decode JSON value that can be either string or int which gives me an error "Candidate ...
1
vote
1
answer
151
views
Base64 Decoding Error :No mapping for the Unicode character exists in the target multi-byte code page
I’m working on a Delphi project where I need to decode a base64 string extracted from a QR code. The QR code contains a mix of textual data, dates, numeric values. Here’s an example of the base64 ...
0
votes
1
answer
99
views
Python decode() mangles bytes object (either returns empty string, or only last line of text)
For the life of me, I can't figure out what's happening here...
I'm capturing the output of a command line utility via subprocess.popen(), and processing the stdout line by line via process.stdout....
-2
votes
2
answers
133
views
How can I extract data from this encoded string? [closed]
I received this string as a response from a private API of a sports betting site: https://sport.synottip.cz:
...
0
votes
1
answer
90
views
String codification UTF-8 to get 1 Byte
I have a problem when I try to write String in a file. For example, I have this code to convert an Integer value to a 2-byte String but the String codification convert Integer to invisible bytes.
I ...
2
votes
2
answers
96
views
Decode Mixed String of Bytes + UTF-8 in Python
I have a messy CSV file where one of the city columns has half bytes and half utf-8 and includes double quotes with b'.
Example Row: column1,"b'\xc5\x81\xc3\xb3d\xc5\xba, Poland'", column3
...
2
votes
2
answers
367
views
Encode Struct to map[string]any with mapstructure.DecodeHookFunc
How can I encode struct with github.com/mitchellh/mapstructure, like:
type Struct struct {
CreateDate *timestamppb.Timestamp `mapstructure:"create_date"`
}
to:
map[string]any{
"...
-1
votes
1
answer
97
views
Getting unnecessary special characters in Url while encoding and decoding json with rawurlencode
I am trying to send JSON array of image URLs to a second page but my redirection URL has a lot of special characters which might be slashes, spaces, etc.
I have tried both 'urlencode' and '...
-1
votes
1
answer
90
views
PHP JWT not verified other than PHP [closed]
I am using PHP firebase JWT for implementation of JWT in my PHP app. Here is my code
$payload = [
'iss' => 'http://test.com',
'aud' => 'http://test.com',
'iat' =&...
3
votes
1
answer
3k
views
Decoding Google News Redirect URLs
I am currently working on a project that involves crawling news articles from Google News via RSS feeds. After gathering these news articles, my next task is to convert the provided Google News ...
0
votes
1
answer
114
views
lxml.etree.XMLSyntaxError for Korean Charachters
I am trying to parse https://api.lever.co/v0/postings/matchgroup?mode=xml but I am getting the error lxml.etree.XMLSyntaxError: CData section not finished. It seems like the issue is being caused by ...
0
votes
0
answers
53
views
How to remove encoded characters in a column? [duplicate]
I'm cleaning a dataset and there's a column named 'city' which the city name has encoded characters.
My first try was to use the method decoded, but then I noticed the city names were in string format:...
0
votes
0
answers
193
views
FFmpeg CPU Usage
Im using FFmpeg.AutoGen api to decode video stream. The problem is when i have one process, it consumes about 0.5% of cpu,
screenshot from task manager:
but when im trying to open more such processes ...
1
vote
1
answer
150
views
Convert packet bytes in powershell
I'm using tshark to get packet data from pcap. I want to know the website url that the tcp.stream is connected to. The only place I can see that will have that is the certificate. If there's another ...
-1
votes
1
answer
289
views
AVFrame with NV12 format breaks using D3D11 HW acceleration
I have a ffmpeg-autogen video decoder, im trying to use a D3D11 as HW accelerator, but the frame i get in result(with NV12 format) is broken. If im doing the same with Vulkan as accelerator, ...
-1
votes
1
answer
62
views
How to decode dynamic keys using prefix [duplicate]
I want to decode strIngredient1, strIngredient2, strIngredient3 to an array and strMeasure1, strMeasure2, strMeasure3 to a separate array. How can we do this using decodable and Coding keys. I have an ...
0
votes
3
answers
884
views
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud83c' in position 0: surrogates not allowed
I am trying to parse "https://tre.tbe.taleo.net/tre01/ats/servlet/Rss?org=arobpers2&cws=42" but I am getting the error "UnicodeEncodeError: 'utf-8' codec can't encode character '\...
0
votes
0
answers
73
views
Read with Java a file that contains text encoded as UTF-8 bytes with python
We need to process text at some files retrieved from a remote place. They are in UTF-8, but the main problem is that the files can have text in many languages, and they all have a single line in this ...
0
votes
1
answer
189
views
Difficulty in accessing json data from jsonbin [duplicate]
I use code that downloads and displays json data from a number of different public json sites such as Apple Music and jsonplaceholder. I have some test data in a bin at jsonbin.io. When I use the ...
-1
votes
1
answer
76
views
can i decode websocket message in developer tools console?
can i decode websocket message in developer tools with vanilla js??
this is the code for example :
(function(send) {
WebSocket.prototype.send = function(data) {
if (data instanceof ...
2
votes
1
answer
290
views
How to use Android MediaCodec to decode an aac audio file
I am using Android MediaCodec to decode an audio file formated in AAC.But the alway output a 0 bytes decodeFile. I have debuged my code, then i found outputBuffer?.remaining() ?: 0 always returns 0.
...
1
vote
1
answer
78
views
Does anyone know how to decode the following data?
Does anyone know how to decode the following data?
b'\x00\x00\x00\xf9Y^^,d,\x00\x00\x00'
b'\x00\x00\x00Ydd,\x89,\x00\x00\x00'
b'\x00\x00\x00\xf9Y^\x92,^,\x00\x00\x00'
b'\x00\x00\x00\xf9Ydd,\x89,\x00\...
-2
votes
1
answer
151
views
Need help decoding this Base64 into readable text. It's from a ARG I'm participating in and it appears broken? Looking for insight
AJ1Nol0eCbzssaiGzWilvda7b4x8ivW1ABPyKN4L/6CHb/YWqFS39S13Y8iwpfxC9wxIirZW1Ap1IOua3j1cdQsWummNeFGdx5UOfpAf/NfNw66IjOP3JSV/tcWfG6js9hx6UzyiLMt+...
0
votes
1
answer
66
views
Decode text returned from OSX Mail Raw Source email in Applescript
I have an applescriptscript to extract a section of text from the the raw source of an email in OSX Mail. That works fine.
However, the text in the raw source email is encoded and is returned by the ...
0
votes
2
answers
108
views
Best way to create a conditional SQL query? CASE, DECODE, or IF/THEN?
I am trying to make part of this query conditional, but I am really struggling to do so. Below I've typed out some pseudo-code that is representative of my query.
Main Query
SELECT A.T_NBR
,A.I_NBR
,A....
0
votes
1
answer
42
views
How to convert n most significant bits in a hexadecimal byte string in Python 3
In Python 3, I am using PySerial to read two bytes and I would like to get the decimal representation of the 11 most significant bits in those two bytes.
This is a print of two bytes that I get from ...
0
votes
0
answers
31
views
abinitio cant decode encoded sha256 value [duplicate]
I can encode a decimal value in abinitio but I can not decode the hashed value. I have some files that keep only hashed values, I want to decode them and later on join them based on decoded values.
...
3
votes
2
answers
193
views
Swift decoding error types inconsistency with `Bool` type
import Foundation
let json = """
{
"property": null
}
""".data(using: .utf8)!
struct Program<T: Decodable>: Decodable {
let property: T
...
-1
votes
1
answer
2k
views
Base 64 : Illegal base64 character 3 Exception
I have a text file with a base64 encoded value, and I tried to decode that text file and save it into a PDF format.
Below is my code
File inputfile = new File('/Users/Downloads/DownloadedPDF.txt')
...
3
votes
0
answers
203
views
Decode h264 frame using android hardware accelerated decoder in gstreamer
I am trying to make a pipeline to get h264 encoded stream using gstreamer with hardware encoding.
Below is that working pipeline:
"ahcsrc ! capsfilter caps=video/x-raw,width=1280,height=720,...