22,589 questions
0
votes
0
answers
41
views
UTF-8 decoding error in graphviz-python when using from_file [closed]
I am trying to display the result of the DOT file proposed in https://stackoverflow.com/a/71609621
My python script is very simple
import graphviz
dot = graphviz.Source.from_file(input_filename)
dot....
2
votes
2
answers
128
views
imap_utf8 not always converting utf-8 text
I have the following simple script, running under PHP 8.3.6
<?php
$original = '"=?utf-8?Q?part1=40part2.com?=" <[email protected]>' ;
$converted = imap_utf8($original) ;
printf("...
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
72
views
git-bash gettext wrong encoding
I'm trying to translate my bash scripts using the gettext tools but I have a problem where the encoding seems to be wrong.
Let's say I have the following file called fr.po:
# French translations for ...
0
votes
0
answers
41
views
Writing accentuated characters doesn't work
I'm having problems figuring out to make mpdf work with accents.
The following code always break, even with a single accentuated character.
$mpdf = new Mpdf();
$mpdf->WriteHTML(mb_convert_encoding('...
0
votes
1
answer
71
views
In DuckDB, can there be proper UTF-8 output in duckbox mode to Windows console? [closed]
Edit:
Since the question is off-topic here, I marked it for closing/migration to SuperUser. It was not migrated so far, so I recreated this question and answer at SuperUser.
I cannot get non-ASCII ...
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 ...
0
votes
0
answers
144
views
C++ Unicode Problems/Questions
I wrote two versions of a little program in C++ with MSVC on Windows 11:
First one:
#include <iostream>
#include <Windows.h>
int main()
{
SetConsoleOutputCP(CP_UTF8);
std::cout &...
0
votes
0
answers
52
views
GitLab CI Allure Report Shows Garbled Characters in Console Output
I'm experiencing intermittent issues with Allure reports in GitLab CI where the console log occasionally displays garbled/corrupted characters instead of readable output.
This doesn't happen ...
3
votes
1
answer
105
views
Cannot get gettext to work in php:fpm-8.2 Docker Container
I've checked on the questions regarding this issue, they did not help (see what I tried below).
I setup a multi-container app on docker with a httpd:2.4 (apache) container acting as reverse-proxy ...
0
votes
2
answers
134
views
Parsing UTF-8 XML using DefaultHandler: when / how does it become UTF-16 in Java?
I have a Java program that was working perfectly in Corretto 17, but is now having character set encoding issues in Corretto 25.
I am reading a UTF-8 encoded XML from an external API. The code is ...
4
votes
2
answers
143
views
Decompress compressed value of type varchar with UTF-8 collation in SQL Server
I have a table with a column of type VARCHAR(MAX) with COLLATE Latin1_General_100_CI_AS_SC_UTF8 in a SQL Server database.
I want to compress the values in the column with built-in COMPRESS() function. ...
0
votes
1
answer
102
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 ...
0
votes
0
answers
162
views
How do you print an emoji in VSCode?
(UTF_8, though I did try UTF_16. Places where I was using UTF_16 are marked)
I'm trying to print a red heart and have so far come up completely blank, here are some of my attempts:
Attempt 1:
String ...