24,345 questions
-5
votes
0
answers
39
views
How should I approach my CSV cleaning project for my OCBC bank statements? [closed]
I am new to programming, and I am trying to start a project on cleaning my CSV file into different formats that I want. How should I go about doing that, and what resources can I use to do it?
-2
votes
0
answers
71
views
Encoding full payload and decoding in server in REST
WAF is showing some errors due to including some HTML tags in my payload responses (mostly field-like messages and user guides). Sometimes, I am also sending R programming language code to the server, ...
0
votes
0
answers
36
views
Edit script file with salt-stack
There is a powershell script file on windows minions which has some parameters set the same on all minions and some parameters set individually per-minion. I want to create a state for modifying some ...
0
votes
0
answers
47
views
Redis data structure and storage optimzation
I have an application which keeps appending data for a wide range of sessionIDs and expiring them in a few hours, currently we use Redis List data structure and having the SessionID as the key.
For ...
0
votes
0
answers
43
views
How to show GBK encoded header in Mac version Unity editor properly?
I work on my project on both Mac and Windows. Some editor headers were written in Visual Studio on Windows in Chinese, and were encoded in GBK(default I guess). However they don't show properly on mac ...
1
vote
2
answers
146
views
Given the string input, how can we traverse the binary tree recursively
Let's say our binary tree (bt) looks like this:
Node* root = new Node();
root->left = new Node("B");
root->right = new Node();
root->right->right = new Node("A");...
-5
votes
1
answer
119
views
Swift: text/string vs. raw bytes? [closed]
I gave the following Swift-code to ChatGPT:
let data = text.data(using: .utf8)
It answered me:
"This line takes your string and turns it into raw bytes (data) that can be stored, sent over the ...
1
vote
1
answer
41
views
How is length of a string encoded when the bounds of the string are not defined in UPER encoding for the ASN when length exceeds 127
If I have the ASN.1 schema as shown below and I want to encode
message "...
1
vote
1
answer
115
views
C# ExcelDataReader reading foreign characters incorrectly from CSV
I created a console application in C#. The program refreshes host names in my database while reading data from an Excel sheet using ExcelDataReader.
The Excel file is saved in .CSV format. One of the ...
0
votes
1
answer
85
views
How to correctly ABI-decode multicall results (ERC-20 decimals + symbol) in tests?
I’m trying to understand ABI decoding of multicall RPC calls so I can create stubbed tests using WireMock for my Rust EVM application.
The multicall function signature is:
function aggregate(Call[] ...
1
vote
1
answer
78
views
Why doesn't file encoding setting in VS Code work?
I am using VS Code. I have a project where all the files are UTF-8. When I load the file in VS Code, it thinks it is ISO 8859-1 encoded. I can change the encoding using the option at the bottom to re-...
0
votes
1
answer
99
views
Incorrect text and emoji encoding when importing Meta (Instagram) chat JSON
I'm trying to learn how to use Power BI, and I thought it would be fun to test my skills by creating some statistics based on my chats with friends. For example, I want to identify the first message ...
2
votes
1
answer
149
views
Emojis won't show up properly in build logs for Maven Project name on Git Bash
I have a pom file whose name looks similar to this.
<name>Some Name 😊</name>
But when I performed the maven build, I got this instead.
Some Name 🙂
I set my project encoding to utf-8, ...
1
vote
1
answer
155
views
Python 3.12 code in USS on z/OS Mainframe - Non-UTF-8 code on Line 1 issue
I'm new to using Python on z/OS; I am creating a program in a USS directory on our mainframe and using a Rocket Software 3270 emulator; I am trying to use square brackets in my code, but as soon as I ...
0
votes
0
answers
37
views
RabbitMQ Configuration Entry Encode / Decode problem
I am working with RabbitMQ v3.12.0 which is running on Erlang v26.0.1. on a Windows 10 machine. The problem is that I am unable to successfully apply encrypted configuration entries. To simplify the ...
0
votes
0
answers
82
views
Encoding tags In JSP
All 3 are working fine. I want to know which one is correct way ? what is the difference in below 3 different lines.
<%@ taglib uri="/WEB-INF/tlds/security/esapi.tld" prefix="en"...
0
votes
2
answers
210
views
JAXB XJC encoding UTF-8 -> Unicode problem
I have a Java 17 application, on Windows OS, configured with Gradle, to unmarshall files into Java classes via .xsd scheme, which contains UTF-8 symbols, specifically, Russian symbols. It was unable ...
1
vote
0
answers
87
views
Inspect shows Charset Encoding of ISO even when i have mentioned UTF-8 in all files
When i open the menu of my web application, i use inspect > network tab and see that pdamnu.do file has charset encoding of ISO.
Now in my pdamnu.jsp i have mentioned the encoding of utf-8
<%@ ...
0
votes
0
answers
40
views
specify source code encoding for OUTPUT window in VS Code
In VS Code, my source code is in UTF-8 without BOM, when build the project, the OUTPUT window presents the comment with the code in mess.
How could I specify the encoding for the OUTPUT window?
I got ...
0
votes
1
answer
96
views
"Unexpected EOF encountered in BCP data-file" when importing large CSV exported from SQLite
I'm facing a persistent issue when trying to import a .csv file into SQL Server using bcp. The operation always fails with the following error:
SQLState = S1000, NativeError = 0
Error = [Microsoft][...
1
vote
0
answers
109
views
How to properly decode the payload of a pubsub message in pyspark / databricks?
I have a pull subscription to a pubsub topic.
example of message I'm sending:
{
"event_id": "200595",
"user_id": "15410",
"session_id": &...
0
votes
0
answers
35
views
Magstripe data decode
We are trying to decode some information on a gift card that is scanned via a mag stripe reader. When scanned the data on the mag stripe is
%B957197678665105^?;957197678665105=?
Printed on the card ...
0
votes
0
answers
129
views
How can I use a file .txt to store some passwords for many programs in python?
I have a file called password.txt and I want to store some passwords in it, I use it in a file of functions but I don't know how to make it usable for more than one file, every one having his specific ...
0
votes
1
answer
101
views
Base 3 chunked encoder off by 1 bug
I'm trying to write an arbitrary base N chunked encoder. This is different than a mathematical encoder where the entire buffer is converted to an integer and then that integer is converted into a ...
0
votes
0
answers
86
views
Encoding problems with pytest
I have an error asserting equality between two string due to non-ASCII characters.
I am getting the table of contents (toc) of a PDF[1] with mymupdf.get_toc() function.
For the unit testing, I have ...