153 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
0
answers
129
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
127
views
How do I reverse back corrupted text to Arabic
The text file was written in Arabic originally, then when I moved the file to an external SSD, then to another device it turned gibberish.(like this):
---áÇÊÊÓÑÚ ÈÇí ÔÆ
---ÇáÎÑæÌ ãä ÇáãÔÇßá ÈÐßÇÁ
---...
0
votes
1
answer
148
views
Mojibake (character encoding problem) when opening a converted HTML file in neovim
I am trying to convert an email in a readable format from a chunk of an mbox file but get a mojibake (wrong da?s instead of das) when opening it with neovim (with set encoding=utf-8 and set ...
0
votes
1
answer
220
views
Backpropagation of wrongly (double) encoded CSV
I have a CSV file that someone encoded wrongly.
The file is a database of movies with corresponding actors. I downloaded it in order to practise some coding for the so called Bacon number.
It looks ...
2
votes
1
answer
1k
views
Fix UTF-8 Character Display in PHP *After* Upgrade from MySQL 5.7 to MySQL 8
We upgraded our RDS database on AWS from MySQL 5.7 to MySQL 8.
The server Character Set and Server Connection are set to UTF-8 Unicode. That's utf8mb4 and utf8mb4_unicode_ci, respectively.
But the ...
0
votes
0
answers
110
views
encoding error by passing String values from Java to R using the rosuda REngine
After opening a R-engine. I assigned to it a dataframe, that I get successfully from database.
After printing some values from the R-engine I found out, that all the string values have a mojibake like ...
1
vote
0
answers
33
views
Golang Bytes.Buffer Converting Unicode to Weird Characters [duplicate]
I have a program in Golang that does some string manipulations to text from a file. It reads in the file, does the manipulations and then tries to setup the text it displays in the terminal with a red ...
0
votes
2
answers
159
views
vs code encoding conflict between Output and matplotlib for french accents [duplicate]
when I prefix my .py file using utf-8 or Latin-1 I always get bad charcacters in OUTPUT or in matplotlib figure text.
Post 'Working with UTF-8 encoding in Python source' does not answer my question ...
0
votes
1
answer
178
views
MySQL Convert Function Deleting Data / Invalid Characters - How to prevent deletion when converting Mojibake to Emoji?
Somehow my database tables changed all my emoji and foreign characters into Mojibake. I'm trying to reverse it by using this function:
UPDATE table SET user_post = convert(cast(convert(user_post using ...
1
vote
1
answer
117
views
In python, how would one change the string 'Nelson Vel\\xc3\\xa1zquez' to 'Nelson Velazquez'?
The issue is with proper encoding. The data type is a string, where the string does not convert the spanish á properly and instead shows as \xc3\xa1. How do you convert these to show 'Nelson Velazquez'...
0
votes
1
answer
257
views
Fixing mojibake for email
My application for macOS archives emails from email clients and IMAP accounts. One user got an email from a Windows user and archived the email from Mail. My app reads the data directly from the hard ...
0
votes
1
answer
343
views
Python fixing mojibake using Ftfy Issue
Few of the text files that I'm importing has mojibake, so I'm trying to fix them using the ftfy library prior to feeding them to Spacy (NLP). The code snippet relating to this issue:
import spacy
...
4
votes
1
answer
788
views
Greek and special characters show as mojibake - how to decode?
I'm trying to figure out how to decode some corrupt characters I have in a spreadsheet. There is a list of website titles: some in English, some in Greek, some in other languages. For example, Greek ...
0
votes
0
answers
111
views
How to specify the charset when connecting to a MySQL server with ExpressJS?
I am using the MySQL npm package to connect via Express to my MySQL database, however I would like to specify utf8mb4 as the charset for this connection, however I can't find anything in the docs ...
3
votes
1
answer
579
views
Python 3 - Hebrew coding problems
I have a server written in FastAPI, Python 3.8.13 that receives data through a form from an external service, which may include Hebrew letters. Until recently, the data arrived through a back proxy ...