24,350 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
30
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 ...
1
vote
1
answer
32
views
pandas.read_csv uses only utf-8 encoding for django file upload
I'm testing django using file uploads. Was facing a strange issue, when despide which encoding I choose, I'm always getting same error message that pandas is trying to decode with UTF-8
pd.read_csv(...
-2
votes
2
answers
110
views
convert a list of texts to numeric values [closed]
fruits = ['apple', 'orange', 'banana']
I want to convert each fruit to a numeric value or numeric array separately, not by LabelEncoder or OneHotEncoding the whole list. Can someone help fill in the ...
0
votes
0
answers
45
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
1
answer
66
views
Gmail API draft creation: Subject with UTF-8 accents (é, è, ...) shows as mojibake ("é")
I’m creating Gmail drafts via the Gmail API from N8N. The draft works and is correctly attached to the threadId, but accented characters in the subject (like adhésion) are displayed incorrectly (adhé...
0
votes
0
answers
42
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
votes
0
answers
60
views
How to export a CSV in R with accented characters (é, è, â, etc.) on Windows? [duplicate]
I'm trying to export a CSV on windows, but get weird characters when looking at the data in Excel (see image). I also tried 'latin1', but it doesn't work.
library(dplyr)
a <- 1:6
mytable = tibble(a,...
-1
votes
1
answer
37
views
How to pass special chars to nodemailer?
I want to pass a string to nodemailer so that it results in
=C2=A0
i tried to pass in both 'Â ' (the literal chars), "\xC2\xA0", etc.
But they always result in =C3=A9
A longer example in ...
1
vote
2
answers
140
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");...
0
votes
0
answers
79
views
@ not recognized by cobol z open editor WHY?
I am writing a Cobol program in Visual Studio Code using the STRING and UNSTRING statements but for some reason when trying to use string functions on email addresses the Cobol program will not ...
-5
votes
1
answer
100
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 ...
0
votes
0
answers
42
views
Email Encoding Issue [duplicate]
I send SMTP mail using PHP but there is an issue with the encoding.
$headers = "Content-type: text/html; charset=UTF-8\n";
Email message sent:
Where there's a dream
Email message received:
...
1
vote
1
answer
38
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 "...
0
votes
1
answer
140
views
PgLoader Migrate data from SQL Server to PostgreSQL server got error with character "ñ/í/..."
I'm using pgloader to migrate data from SQL Server to PostgreSQL server, the database is huge and I can't export to CSVv due to special characters. So I migrate db to db directly, almost done but it ...
1
vote
1
answer
110
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 ...