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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
19 views

How do I encode [String: Any?] in Swift using the Codable protocol?

I am using the following Codable class to encode JSON: struct DispatchModel: Codable { var procedureName: String var parameterList: [String: String]? init( procedureName: ...
Joel S.'s user avatar
  • 69
5 votes
1 answer
47 views

JavaFX Arabic letters are not displayed at all

I have the following FXML file <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.text.*?> <?import javafx.scene.control.*?> <?import javafx.scene....
Youssef Ehab's user avatar
0 votes
0 answers
32 views

Encoding problem when reading from a CSV file

I'm reading text from CSV file and had to use an specific encoding to read spanish characters (tildes), but this encoding doesn't work for the ' characters that my CSV file contains. This is the code ...
NICOLÁS F. YÁÑEZ SILVA's user avatar
0 votes
0 answers
15 views

Sending body in 415 error when client Accept-Encoding prohibits `identity`

I’m encountering a scenario where a client sends a request with the Accept-Encoding header explicitly prohibiting "identity" (no encoding). In the event that the server is unable to fulfil ...
undefined's user avatar
  • 1,041
0 votes
0 answers
23 views

Python Encoding error when readin .sav SPSS file

I am working with sav files using https://pythonhosted.org/savReaderWriter/_modules/savReaderWriter/savHeaderReader.html. I have to do this task on Python: The name of the variable and value labels ...
Daniela Flores Goicochea's user avatar
0 votes
1 answer
28 views

defined name & auto fill cell with pattern based on defined name

Please help to create VBA code. I want to defined name based on below picture. i want to make a defined name (Process 1, Process 2, Process 3) with many part number Then please help me program a ...
Syazwan Zuhaizi's user avatar
0 votes
1 answer
21 views

Jenkins get Build Log without the Color Encoding

I want to send the build log as an attachment post build but its not readable since alot of the text is encoded in base64 related: How to decrypt Jenkins 8mha values Since this jenkins instance is ...
HelpNeeder's user avatar
0 votes
0 answers
25 views

Notepad++ renders some utf8 characters only when another utf8 characters are present

I noticed when I try to write characters such as ∃ ∈ ⟧ (resp. U+2203 U+2208 U+27E7) and so on don't render, i.e. show as empty squares. When I write the symbol ∀ (U+2200), they all render. There are ...
Trayan Gospodinov's user avatar
-2 votes
1 answer
33 views

PHP create a CSV file with Windows-1252 encoding

I want to generate and save a CSV file with "Windows-1252" encoding. My base code : $filename = 'path/to/file.csv'; $file = fopen($filename, 'w'); $datas[] = [ "data 1", &...
jake.mactavish's user avatar
0 votes
1 answer
47 views

UTF-8 encode not working properly on Greek characters

For some reason when I'm trying to encode a JSON file that I've downloaded from SSMS, the encoding of Greek characters in VS code come out as question marks. This is my code: import json def ...
chopchop's user avatar
0 votes
0 answers
23 views

Encoding issue in shapefile character column

I am trying to read a shapefile (available in this folder) in R, but have not been able to solve a codification issue in one of the columns. If I load it using sf, I get, from one of the observations, ...
catatau's user avatar
  • 28
1 vote
1 answer
88 views

Convert UTF-8 To UTF-7 in Python

I am trying to find a way to implement this in python: CyberChef Example I want to convert from UTF-8 to UTF-7. For example, given the string <root><test>aaa</test><hel>asd</...
user7864052's user avatar
-3 votes
1 answer
30 views

Efficient Morse Code to Text Conversion: Seeking a Reliable Converter Tool or Method [closed]

What is the most accurate Morse Code decoder tool for converting Morse Code to English text efficiently? What is a reliable Morse Code to Text converter tool or method that I can use to efficiently ...
meker22's user avatar
2 votes
1 answer
58 views

Encoding csv webrequest [duplicate]

I'm having trouble being able to encode this request from google sheets. $webresponse = Invoke-Webrequest -Uri "https://docs.google.com/spreadsheets/d/1hqjD2ghx-NNV6KgHqvPSvJoE5tQk6Sm_DJqyVHTrFwU/...
iceman's user avatar
  • 490
0 votes
0 answers
11 views

Rapidjson parser does not recognize € or korean chars in utf8 encoded files

I try to read a utf8 encoded json file with a special character € and various korean characters. file content: {"test":"this is german ä ü ö and € and this is korean 가 나 다"} code: ...
Bob's user avatar
  • 1
0 votes
0 answers
18 views

BertTokenizer decode not understanding additional vocabulary

I am trying to extend the BertTokenizer base-uncased vocabulary. I added 3 new items to the BertTokenizer vocabulary (2 emojis and a made-up word), and saved the new vocabulary. Then I instantiated a ...
Reinaldo's user avatar
  • 131
-2 votes
0 answers
23 views

Terminal encoding messed up [closed]

I am usig Iterm2 (been a while). Recentely had to reinstall brew package manager, and started noticing some weird artifacts in my terminal, like this Any ideas what can cause this? Encoding is UTF-8
voodookiidoo's user avatar
0 votes
2 answers
39 views

Is it possible to encode AVI video to MP4 using Azure function?

Since Azure Media Service is being retired next year, I was thinking to try different approach to encode a video to MP4 and this approach includes Azure Function. The flow would be like this Get ...
Sandy's user avatar
  • 13.9k
1 vote
1 answer
39 views

Encoding class containing instances of type parametrized class

I can not deal with usage of circe to encode instance of FL class to JSON. I provided two custom encoders - both for CS and RS classes. However, still during compilation I got: could not find implicit ...
Gilgamesz's user avatar
  • 4,823
-1 votes
0 answers
53 views

ftplib ftputil encoding issues on listing and downloading files

Python version 3.11.6, ftputil version 5.0.4 I'm trying to download files off an FTP server using ftputil (though I have also tried ftplib functions as well, since a lot of ftputil is based on ftplib)....
Trying's user avatar
  • 21
0 votes
2 answers
50 views

Cannot upload most video files to supabase server in React Native

I have the issue that some files, for example many videos seemingly cannot be properly uploaded with base64 encoding, but with React Native the update function of supabase only works with base64 ...
timo_omit's user avatar
0 votes
0 answers
8 views

Decomposing a regression in Stata want to understand how much of the variation is explained by gender

want to understand how much of the variation is explained by gender and then gender and teacher specific fixed effects. I was trying to use oaxaca in Stata 16 but cannot figure it out. I first tried ...
Rahul Sarawag's user avatar
0 votes
1 answer
27 views

deduce some matching ENCODE function from existing DECODE function

in some web project i found some DECODE function in javascript. that is to kind of decrypt some obfuscated string. i lost the source code of the matching counterpart - the ENCODE function. and i just ...
Fred F.'s user avatar
0 votes
0 answers
24 views

PHP Mysql strange character convertion issue [duplicate]

I'm trying to retrieve the header information of unknown websites entered by a user. The script i got works well. But on some links the Page title could have a character like this: some-website: Let’s ...
Tony's user avatar
  • 43
0 votes
0 answers
33 views

MS-DOS D-Fend Reloaded file encoding "application/octet-stream; charset=binary" to ASCII in ubuntu

I have an MS-DOS developed application in D-Fend Reloaded and its DB is stored into a DATABASE01.DAT file. I tried to determine the file type through file command in ubuntu terminal and I get: ...
cccnrc's user avatar
  • 1,207
0 votes
1 answer
34 views

Upload a file to temporary folder with a Yesod application: encoding issue

I'm trying to do a Yesod web app allowing to upload a file and to save it in the temporary folder. I'm using Base64 encoding/decoding. When I upload a text file with this content: copie carte d'...
Stéphane Laurent's user avatar
0 votes
1 answer
76 views

Can I revert bad encoding with javascript

I need to fix the encoding of some web-data with javascript. I have no control of how the data is produced but this is basically what is happening: (new TextDecoder('latin1')).decode((new TextEncoder()...
UlfR's user avatar
  • 4,235
2 votes
2 answers
77 views

How to get index of a string in an a list

public int userCompare(String s1, int i1, String s2, int i2){ String[] alphabety = {"a", "b", "c", "d", "e", "f", "g", &...
Tanmay Sharma's user avatar
0 votes
1 answer
51 views

convert camelCase to snake_case psql encoding issue

I have been solving the task converting camelCase -> snake_case on SQL level, however I met strange issue with encoding. so I have the table with type column select distinct type from my_table; ...
zhisme's user avatar
  • 2,482
0 votes
0 answers
28 views

Spring boot / docker / nginx - query param encoding

I have spring boot application (3.0.9) that expose rest service that get string as query param. The application is deployed by docker image that include the jar. In front of the container, There is ...
ostr's user avatar
  • 51
0 votes
0 answers
35 views

Flask issues with encoding when parsing pdf as text

I have a function which parses pdf as text: def convert_pdf_to_text(pdf_path): """Convert a PDF file to text.""" try: with fitz.open(pdf_path) as doc: ...
Nathan Wang's user avatar
0 votes
2 answers
54 views

Getting weird characters in CSV, making it unreadable for Spark

I am using Salesforce Bulk 2.0 API to fetch Salesforce Objects' data. I have created respective function for so - /** * Fetches results from a Job ID of Batch query. * NOTE : Provided Job ID must be ...
ujjawal's user avatar
2 votes
0 answers
49 views

Why the scala compiler encoding different names with/without inner class’s accessing?

Given the following scala 3.x codes (I also asked in users.scala-lang.org): object NameEncodingTest: class HasInner: private val x: Int = 0 private val y: Int = 0 def getX:...
esse's user avatar
  • 1,480
0 votes
0 answers
23 views

Encoding URL with Advanced Encryption Standard (AES)

So, I have a payment page, and some data which I have encrypted using AES (part 1) which upon clicks redirect me to receipt page by passing the data in the URL. Then on the receipt page, I am ...
danny's user avatar
  • 9
0 votes
0 answers
28 views

Can I somehow generate a memorable string from a string of random characters?

Let's say I have a base64 encoded string. Can I somehow generate a memorable phrase from it to make it easy to memorise?
sidoshi's user avatar
  • 2,060
0 votes
0 answers
21 views

Find a generator polynomial and generator matrix of a triple error-correcting [15, 5] binary cyclic code

Find a generator polynomial and generator matrix of a triple error-correcting [15, 5] binary cyclic code. Here q=2,n=15andk=5. So,|T|=15−5=10. 2-cyclotomic cosets: C0 = {0},C1 = {1,2,4,8},C3 = {3,6,12,...
Shashank's user avatar
0 votes
1 answer
64 views

How to Convert Garbled Text Back to an Image File?

I'm not a coder and I've been using ChatGPT to try to figure this out, so apologies if I misuse any terms. I have a string of text that I suspect is from an image file, given that it starts with "...
mferox's user avatar
  • 1
0 votes
0 answers
48 views

XSS Filter encoding and decoding

How can I handle situations where the encoded value from the XSS filter implemented with org.owasp.encoder.Encode.forHtml(UserInput), needs to be decoded for specific use cases such as populating ...
Sangram G's user avatar
1 vote
1 answer
75 views

Why is wcrtomb ASCII-only?

On my system wcrtomb() appears to think "narrow multibyte representation" means "ASCII-only" even if I compile with -fexec-charset=utf-8. I was under the impression that -fexec-...
Andrey Bienkowski's user avatar
1 vote
1 answer
41 views

How to detect in PHP that pensé is the same as pense [duplicate]

How can I do a test in PHP to compare two words (one with accent) and detect that is the same word ? e.g pensé vs pense Basically I told it to load certain words from MySQL table, and with MySQL ...
adrianTNT's user avatar
  • 3,745
0 votes
1 answer
127 views

Converting a byte array to a string and converting it back to byte array in same encoding producing different results

I'm generating a random 20 bytes long array and want to convert it to a string, in order to use it as a random token for an API call. However when I convert it back to a byte array (just for testing), ...
Ali Ahmadi's user avatar
0 votes
1 answer
30 views

Does the BRCI algorithm work for *all* Huffman Trees?

I'm trying to create a height-limited Huffman Tree. One algorithm proposed for this is the BRCI Algorithm, which promises a comparatively fast and simple to implement solution. This means that the ...
twynb's user avatar
  • 41
0 votes
0 answers
23 views

How to measure the value of isoclines or measure a y value given some x value?

This code generates two graphs looking at predator-prey relationships based on the Lotka-Volterra model. One graph shows the two functions representing predator and prey populations. These undulate ...
Crimson's user avatar
  • 19
0 votes
0 answers
22 views

Javascript: unable to save file with encoding ANSI, charset ISO-8859-1

I need to download from browser a file containing a string composed by ASCII(161) + ASCII(162) + ASCII(163) + ASCII(164) + NewLine and I need also to save it with charset 'windows-1252': let data = &...
Stefano Radaelli's user avatar
2 votes
1 answer
101 views

How to reverse UTF-8 encoding in a byte array?

I have the following problem: A certain producer sends Protobuf messages as binary data (byte array). These binary data enter a misconfigured Kafka cluster which deserializes the byte array as ...
PravlesRedneckoff's user avatar
-2 votes
1 answer
37 views

Apache NiFi PutFTP Processor Cannot Handle Filename with Japanese Characters

I'm using PutFTP to send files to FTP server. But when the filename contains Japanese characters, it becomes unreadable in the FTP server folder. Original: Japanese_text_漢字テストファイル.csv After sending: ...
JefinOJ's user avatar
0 votes
0 answers
26 views

Android - buffer and selectively save 30s of video

I want an app that'll take 30s of buffered video, but only save the buffer to a file when I press the shutter button. The application is for me to use it when I'm playing volleyball; when I make a big ...
ttshaw1's user avatar
  • 59
0 votes
0 answers
25 views

Is there a way to tell fetch() to not decode percent 2E (%2E) to dot (.) on a URL?

I'm trying to use fetch() with my URL that has %2E on it (for example, /foo/bar/192%2E168%2E1%2E1.json. When I use fetch(), it decodes the %2E back to a dot . (/foo/bar/192.168.1.1.json), and it ...
Jasper Martin's user avatar
0 votes
1 answer
43 views

Why did I get a larger data size when compressing the region of interest than the original video?

I have a medical video, and I want to send it through the network efficiently, so I used the Region of Interest technology to split the original video into the Region of interest and background. I ...
lama lama's user avatar
0 votes
1 answer
44 views

How to send a number in query string with axios

My react application call an API to post with query string. For example, var param = { name: 'Alex', age: 22 } axios({ baseURL: 'https://aaa.com', url: '/user/create', method: 'post'...
Kim Andy's user avatar

1
2 3 4 5
486