24,333 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
0
votes
1
replies
69
views
what is the best practice to get the right compare of byte array?
actually I want to get the right encoding of the text so I write the code :
I have to compare the byte array of the encoding and get the right compare and then know which it is.
but there is many and ...
0
votes
0
answers
156
views
How to configure VSCode/Cursor that it respect current file encoding while opening file (Delphi WIN-1257 files)
I am developing Delphi 2009+ projects and my Delphi *.pas files has UTF8 encodings (when initially created and when edited and saved up to the point when non-English comments or string constants are ...
1
vote
0
answers
71
views
VSCode Debug Console prints UTF-8 Chinese characters as hexadecimal sequences (xe4xb8xad...)
I'm trying to print UTF-8 Chinese text from a simple C program, but VSCode's Debug Console cannot decode the output.
Instead of showing Chinese characters, it prints escaped hex sequences.
Minimal ...
0
votes
0
answers
36
views
svn outputs garbled characters on Windows10
svn outputs garbled characters on Windows, it seems that utf-8 output of svn was read by terminal in gb2312.
the activity code page of windows is set to utf-8(65001),but the system region code page is ...
0
votes
1
answer
81
views
Change micropython unicode notation from \xb0 to \u00b0 in string
I am using Micropython on the ESP32.
I have the following string, which includes the unicode character \xb0.
a = 'abc\xb0def'
First, I will need to change the notation to the \U00XX form, second I ...
Advice
0
votes
2
replies
109
views
Force all character columns in a list of data frames to UTF-8 before uploading to a UTF-8-only database
I have a list of two tables in R.
Each data frame contains several character and numeric columns. One of the columns is a company name column (for example, Company_Name).
The target database only ...
3
votes
2
answers
229
views
Is `use source::encoding "ascii";` implied by `use v5.42;`?
According to the new source::encoding pragma's documentation,
use source::encoding 'ascii' is automatically enabled within the lexical scope of a use v5.41.0 or higher.
To me, this means that
use v5....
0
votes
0
answers
50
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
47
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(...
0
votes
0
answers
54
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
103
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
50
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 ...
-2
votes
1
answer
56
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
162
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
95
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 ...