Skip to main content
The 2024 Developer Survey results are live! See the results

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.

-1 votes
1 answer
18 views

Possible issues with text encoding

I'm having a strange problem when I read a .csv file using read_csv. I'm afraid I don't think I can produce a reproducible example because the issue may involve my current R/RStudio session and how ...
whdaffer's user avatar
1 vote
1 answer
29 views

Leave one out encoding on test set with transform

Context: When preprocessing a data set using sklearn, you use fit_transform on the training set and transform on the test set, to avoid data leakage. Using leave one out (LOO) encoding, you need the ...
Jelle's user avatar
  • 251
0 votes
0 answers
22 views

Error with using avenc_h264_omx element in Gstreamer

I use Raspberry CM4 module for video streaming While trying many encoder , i bump into problem with using avenc_h264_omx in the following pipeline gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-...
Anri's user avatar
  • 3
0 votes
0 answers
35 views

UTF-8 encodes single Unicode value to two different Hex values?

I am trying to encode Unicode character 192 in UTF-8 in Python as follows: print(chr(192).encode()) Expected output: b'\xc0' Actual output: b'\xc3\x80' Where am i going wrong?
Kevin's user avatar
  • 191
-1 votes
0 answers
39 views

How to loop trough encoding types Python data.code

this code is supposed to be able to read qrcodes but i have one in particular that doesent work and i get this error UnicodeEncodeError: 'charmap' codec can't encode character '\x85' in position 33: ...
tomaxtoro's user avatar
-3 votes
0 answers
18 views

Is there a term for the number of signal elements per bit? [closed]

I know what bit rate is - the number of bits per second. I know what baud rate is - the number of signal elements per second. I also know what symbol rate is - it is synonymous with baud rate. Is ...
David Rechtmann's user avatar
-2 votes
0 answers
16 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, ...
kavalanche's user avatar
0 votes
0 answers
34 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 ...
Sarertt Pontampon's user avatar
0 votes
0 answers
27 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\...
toon town's user avatar
-1 votes
0 answers
45 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 ...
Zach McLeod's user avatar
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 ...
NFeruch - FreePalestine's user avatar
-2 votes
0 answers
19 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 ...
Brendan Banfield's user avatar
-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 = ...
elle0087's user avatar
  • 874
1 vote
1 answer
60 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 ...
Lawrence Kok's user avatar
  • 1,588
2 votes
2 answers
59 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 ...
Warren Chen's user avatar

15 30 50 per page
1
2 3 4 5
1626