15,319 questions
Advice
0
votes
2
replies
93
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 ...
20
votes
4
answers
2k
views
Why doesn't printing a Unicode character with wprintf work?
I made a small C program that should print an emoji:
#include <stdio.h>
#include <windows.h>
int main(void) {
SetConsoleOutputCP(CP_UTF8);
printf("\U0001F625\n"); // 😥
...
4
votes
1
answer
113
views
Are spelling variations of encoding identifiers for "setlocale" standardized or documented?
This question has to do with syntactic conventions for string encoding identifiers in locale names passed to setlocale in C, focusing on the particular example of UTF-8. My preliminary observation is ...
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
votes
1
answer
42
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 ...
-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
0
answers
32
views
Clipper (CP437) Character Display Issue on AlmaLinux 9.6 Minimal Server Terminal [duplicate]
I'm working with an AlmaLinux 9.6 Minimal server that hosts a Clipper-programmed system. This Clipper system uses the CP437 character set.
I've successfully configured client computers to display the ...
0
votes
0
answers
46
views
Accents replaced with a strange character in Symfony 6.4 [duplicate]
For 3 days, the characters with French accents no longer appear and are replaced by a �.
Everything was fine before.
In phpmyadmin the display is correct.
It's only on the remote server, in local all ...
0
votes
0
answers
76
views
How to tell if these two identical-looking but differently encoded strings are the same? [duplicate]
I'm trying to import some data downloaded from Google Sheets.
The tab, when editing on the website, is called "Kodály". In Ruby, if I look at the individual characters, I see this:
>> ...
1
vote
0
answers
177
views
How to set meta charset to utf-16 instead of utf-8 in Next.js?
I'm working on a Next.js application (currently using version 15.3.2) and I'm looking to ensure the charset meta tag is correctly set in the HTML head. Typically, in a standard HTML file, I would just ...
1
vote
0
answers
281
views
Function can't handle different string encodings. If you are using non-ASCII characters, save the source file in the local encoding
I have a CAPL script done in Windows with a shebang at the beginning as follows:
/*@!Encoding:65001*/
and this warning message pops up with green highlighting on a TriggerPDU2() function.
Function ...
1
vote
1
answer
99
views
How to display non-English text that the user inputs in the console correctly?
The console doesn't display the non-English text input into it correctly, when it's later outputting them. However the text displays correctly when the user inputs them.
Some of the non-English ...
2
votes
0
answers
73
views
CharsetDecoder with DirectByteBuffer and HeapByteBuffer performance difference
My use case is the following: reading DirectByteBuffers from the network and decoding them into UTF-8 strings. I’ve observed that using a UTF_8 CharsetDecoder with a DirectByteBuffer is 3–4 times ...
0
votes
1
answer
25
views
Google Search Console export not giving the same URL
I'm going through a list of URLs that google have tried to index that gives 503. We have fixed a number of these, and I wanted to go through the list to test which are still left.
However, I ...
3
votes
0
answers
148
views
Text encoding on Windows in C++
I updated GCC to the recently released version 15.1 (via Msys2, on Windows 10).
On cppreference, I noticed the page regarding the <text_encoding> header, which should be supported by GCC version ...
1
vote
0
answers
95
views
UnicodeDecodeError using PostgreSQL DB for DRF project on Windows
I'm working on a team project on DRF, which uses PostgreSQL-based DB, my local PostgreSQL version is 17. The problem is that all of my colleagues have Ubuntu OS on their devices (and the project ...
0
votes
1
answer
69
views
Copy Excel file xslx encoding problems
I am trying to copy an xslx file from a remote system within a jenkins groovy script. This xslx file is encoded with windows-1252, so I give this Charset to the FileReader and FileWriter:
...
1
vote
1
answer
49
views
How to recover original characters from data with broken characters?
We have a bunch of translations loaded in our Database which are showing broken characters where there should be accented latin characters like 'É'. I'm not sure where the encoding went wrong but we ...
3
votes
0
answers
121
views
Why does setlocale cause fputs to produce garbled output in the Windows console?
My Windows system ANSI code page is GBK, and I am working on a Windows console program.
// SetConsoleOutputCP(65001); // Neither code page 936 nor 65001 affects the result.
char utf8[] = { 0xE4, 0xB8, ...
0
votes
1
answer
66
views
Potential Encoding error in printed output while using R from SAS IML?
I am using R from SAS using proc iml . I want to import a dataset from sas (in the example sashelp.class) and print the first 5 rows.
options set=R_HOME="C:/PROGRA~1/R/R-44~1.2"; * Position ...
-2
votes
1
answer
85
views
How do I encode a JavaScript file included in HTML? - I get `…` rather than `…`
Attempt:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=...
0
votes
1
answer
92
views
load data stopped prematurely
I uploaded a file with 4 million rows to a table.
The table is a database of vehicle license plates along with all the characteristics of that vehicle (color, tire size, engine capacity, and more).
...
0
votes
2
answers
80
views
JSON with °(degree) sign / special character is not sent to API as expected
I am using the above code in Oracle, to send a payload to an API. It's working for all the payload except when the comment field has a Degree sign(°).
/////////////////////////////////////////////////...
0
votes
0
answers
101
views
Oracle SQL*Loader inserts ? instead of correct Unicode characters (JDBC works fine)
I am working with an Oracle database that uses the US7ASCII character set. When inserting Unicode characters using a Java JDBC program, the values are stored correctly, but when inserting the same ...
1
vote
1
answer
207
views
Liquibase Error: Unexpected error running Liquibase: ORA-17056: Non-supported character set
I'm encountering an error when trying to run Liquibase with an Oracle database. Here's the exact error message I receive:
Unexpected error running Liquibase: ORA-17056: Non-supported character set (...