Questions tagged [encoding]
Encoding is a set of predefined rules to reversibly transform a piece of information in a certain representation into a completely different representation. The other way round is called decoding. This tag is rather generic, but it is mainly used for binary encoding schemes such as base 64 and hexadecimal.
encoding
24,380
questions
-2
votes
0
answers
15
views
How to know the mappings done by sklearn ordinal encoder?
I have done ordinal encodings to two columns of my dataset using sklearn
I want to know which column is mapped to which one
Say 0 is mapped to what for both the columns
I want to know the syntax, ...
0
votes
0
answers
32
views
Cyrillic characters wont show up in console
So, only characters that I input shows perfectly fine, but the output characters (when im doing Console.WriteLine) change to '?' Output
It is weird because before every cyrillic character was showing ...
0
votes
0
answers
22
views
UnicodeDecodeError with FastAPI when Handling Audio Files: How to Resolve?
I'm encountering a UnicodeDecodeError in my FastAPI application while processing audio files. The error traceback is as follows:
Traceback (most recent call last):
File "C:\Users\sanja\AppData\...
-1
votes
0
answers
44
views
How can you change the color of a pixel on your live display using Python? [duplicate]
I'm currently deep into GPU coding and I'm facing a unique challenge. I need to find a way to dynamically alter the color of individual pixels directly on my display monitor using Python. This isn't ...
0
votes
1
answer
50
views
Unicode strings in a purely python3 codebase - are these useless? [duplicate]
In the codebase that I'm working on, there seems to be remnants of python2 because a lot of the strings are prefixed with u.
From researching, it looks like this denotes a unicode string, but in ...
-2
votes
0
answers
18
views
How much does the format of a NN input layer change performance?
Often there's multiple ways an input layer could be structured. For instance, you may be able to greatly reduce the number of neurons required by doing some simple compression, at the cost of having ...
-2
votes
1
answer
48
views
Coding and decoding byte array in string are not identical
I have to read a varbinary column from SQL Server, and send it to a json.
I tried some test conversions byte[]/string and vice-versa, but I cannot understand what is wrong.
For example:
string s = ...
1
vote
1
answer
59
views
is there a way to output and consume binary files on stdout/stdin of powershell?
I am expierencing an issue with a powershell script which doesn't work whereas dotnet application with the same commands works. I believe the problem is related to encoding, I think in powershell the ...
2
votes
2
answers
58
views
How to correctly encode special characters in URL parameters with `requests.get()` in Python?
I want to grab some content from a website using requests.get() on jupyter notebook, with a Python version of 3.10.
The website is a simple search engine with a search bar and some buttons.
When I ...
-1
votes
0
answers
26
views
I'm having issues importing my csv file into postgresql . The file has already been converted into a UTF8 format but still shows error [closed]
ERROR: invalid byte sequence for encoding "UTF8": 0xf6 0x64 0x2c 0x32
CONTEXT: COPY NW Products, line 23
I tried importing the file so many times but still gave the same error, and i already ...
0
votes
0
answers
35
views
Parsing scan code event data received from a character device in Linux
I need some guidance regarding the parsing and de-serialization of binary data received from a character device in Linux. I'm working on writing a program in rust that monitors keyboard input used for ...
0
votes
1
answer
73
views
Detect mixed-up encoding in PHP and make everyting Windows 1252
I've got a CSV file with mixed up encoded strings:
1956;Mathé Altéry;Le Temps Perdu
1963;Alain Barrière;Elle était si jolie
2024;Gérard truc;Mon éden
2024;GÃ¥te;Ulveham
2023;Gergő Rácz;Zé Szabó...
-2
votes
0
answers
46
views
How to recover R script saved as 0kb with ISO 8859-1 encoding? [closed]
I was working on an older version of R. I closed R studio to update to the latest version & I saw that my R script was saved as 0kb.
I checked that the default encoding used with the older version ...
0
votes
0
answers
24
views
SMPP protocol v3 data_encoding
I'm a developer of the SMS platform.
In some moment I found that some clients send sms to my servers with incorrect encoding.
Here example what I got a few days ago:
Text of sms:
[realme]579174 est ...
1
vote
1
answer
66
views
CBZ image concatenation in GoLang
I am trying to take a .cbz / comic book file, read the images into a single byte array and return it as a single image to serve in a web application. For testing purposes a .cbz file is just a rar ...