24,300 questions
Best practices
0
votes
4
replies
132
views
Encoding in C#, what is considered best practice when using it on production at the user
I am a working developer, currently working in C# dotnet 4.8
I am currently working on replacing a bad working project on the client's server, I fully recreated the project to match updated code(more ...
Best practices
1
vote
15
replies
318
views
How do I properly handle UTF8 encoded CSV files
I have code that imports spreadsheets of 2 columns of numbers for a scientific application.
While creating some test files with excel, I inadvertently created one with "CSV UTF-8" encoding. ...
Score of 0
0 answers
112 views
String variable output contains characters that could not be displayed [duplicate]
I have a PHP variable which looks like this:
$news="Do you have a business idea and want to evaluate its market potential? The Fédération des Entreprises Russes (FER) organises a practical ...
Advice
1
vote
8
replies
202
views
Why doesn’t copy-pasting from a terminal preserve the original bytes?
I’m working on a simple encryption/decryption program (C++), where I encrypt a string and then decrypt it back.
If I write the encrypted data directly to a file using binary mode and then read it back,...
Best practices
0
votes
2
replies
46
views
Unicode encoding of units of measure
I'm working on a proprietary font that uses custom glyphs for certain units of measure. For example, I want to display pH for acidity as a single glyph, or nm for nanometers, etc. This font is ...
Advice
0
votes
7
replies
46
views
File data was converted to question marks in VS Code
I had added data to a Markdown file in VS Code, but there was a formatting problem between two languages. I kept choosing between Reopen with Encoding and Save with Encoding more than once with more ...
Score of 0
0 answers
41 views
AFP via FOP: Is it possible to set TLE encoding without including encoding triplet in TLE value?
I need help with a problem regarding AFP TLE encoding. Following the specifications of a print service provider, I incorporated the required TLEs into the AFP using the <afp:tag-logical-element> ...
Score of 1
1 answer
45 views
Chinese CSV Headers Become Garbled When Importing to DolphinDB with loadTextEx
I have a CSV file where only the header row contains Chinese characters, while all the data values are in English. I'm trying to import this file into a DolphinDB distributed database using the ...
Score of 3
1 answer
92 views
Symfony Mailer / Mime 8.0: UTF-8 Subject gets corrupted (C3 B6 → C3 3F) during header encoding
I am seeing what looks like UTF-8 corruption in the Subject header when using Symfony Mailer / Mime 8.0.x with PHP 8.4.
Symptoms:
Umlauts and other multibyte characters are partially replaced with ? ...
Score of 2
1 answer
81 views
Proto encoding for message with packed repeated elements
I am quite new to protobuf. I am trying to make sense of the example that is used in https://protobuf.dev/programming-guides/encoding/; there are repeated elements which I can't figure out.
It ...
Best practices
0
votes
2
replies
94
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 ...
Score of 1
0 answers
528 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 ...
Score of 1
0 answers
153 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 ...
Score of 0
0 answers
50 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 ...
Score of 0
1 answer
104 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 ...