Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Browsing all 1056 articles
Browse latest View live

How do I convert this string from a UTF16 file to match a string to UTF8...

I have situation where I am receiving a string that represents the data read from a UTF16 file. (I don't have control over the incoming data). The string looks...

View Article


UTF8 MySQL problems on Rails - encoding issues with utf8_general_ci

I have a staging Rails site up that's running on MySQL 5.0.32-Debian.On this particular site, all of my tables are using utf8 / utf8_general_ci encoding.Inside that database, I have some data that...

View Article


How to remove all non printable characters in a string?

I imagine I need to remove chars 0-31 and 127.Is there a function or piece of code to do this efficiently?

View Article

Boomi failing to process UTF-8 files

A warehouse we work with put a change in where they agreed to write a '.tmp' extension on a file when transferring, and then change to xml once complete.When we try and process the files we get this...

View Article

Issue when converting Windows-1252 characters to UTF-8 in Java [closed]

I'm decoding some data which is partially encoded in Windows-1252, and when I try to convert the char code 148 decimal (94 hex) into UTF-8, I get a nonsense result. The code I'm using is below:String...

View Article


Convert String to ISO-8859-1

In my JavaScript app, I want to give the user a button to download data in either UTF-8 or in ISO-8859-1 (Latin-1).The only working solution I have found so far is using iconv-lite.var iconv =...

View Article

How to convert UTF8 Hex to Hebrew letters in Flutter/Dart

In my Flutter app, using ChatGPT API (model gpt-4o-mini) and requesting a mixture of English and Hebrew in Json response, it receives the Hebrew as UTF8 Hex (each Hebrew character taking 2 bytes).eg....

View Article

Apache Camel, RabbitMQ, special character is transforrmed into a Question Mark

have a string "X°XX" which RabbitMQ writes out as "X?XX"I understand that this happens, when you stream a string into bytes with one charset UTF-8.And write the bytes back to a string using another...

View Article


UnicodeEncodeError: 'ascii' codec can't encode character 'xa0' in position...

I'm getting this error while inserting the data into the table. result_df has a column which contains different languages text in it and I tried to use encode('utf-8') but no use . I used following...

View Article


Identifying ASCII characters in a UTF-8 byte stream

Reading bytes from a UTF-8 file (i.e. not processing strings), I need to unambiguously identify certain ASCII characters which are used as delimiters - much like CSV parsing.While this seems simple at...

View Article

UTF-8 all the way through

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.Where...

View Article

Using UTF-8 Encoding (CHCP 65001) in Command Prompt / Windows Powershell...

I've been forcing the usage of chcp 65001 in Command Prompt and Windows Powershell for some time now, but judging by Q&A posts on SO and several other communities it seems like a dangerous and...

View Article

Java PreparedStatement UTF-8 character problem

I have a prepared statement:PreparedStatement st;In my code, I try to use st.setString method.st.setString(1, userName);The value of userName is şakça. The setString method changes 'şakça' to '?akça'....

View Article


Python | Pyodbc | Encoding FetchAll() to Utf-8 with .Encode('utf-8')

thanks in advance. I am still very new to python.I am attempting to write the results of a pyodbc query using FetchAll to a CSV file. When I ran the code on our stage server, everything works great. On...

View Article

mysql and FLTK - strange symbols in Fl_Table

I'm using FLTK and mysql++. I need to insert data from mysql DB to FLTK control Fl_Table. And I know how to do that. But, for example, when my data inserted, I see strange symbols in the FL_Table...

View Article


how to decode russian language

I have trying to load several sites with different languages content. And only russian content I have seen as <?> elements. Please help me to decode it to right symbols. My code...

View Article

Image may be NSFW.
Clik here to view.

Flutter: Arabic language isn't recognizable, it seems like symbols, and want...

I have a text wanna show it in pdf file created by Flutter appThe English letters shown ok, but the Arabic has problems with appearing!!!I used 'dart:convert' package for edcoding/decoding from utf-8,...

View Article


Image may be NSFW.
Clik here to view.

Print greek characters in CLion IDE

OS - Windows 8.1IDE - CLion 2021.3.2I need to print some greek characters but what I have is these symbols: ╬╗ , ╬╝ , ¤üWhat am I doing wrong? This is my settings for file encodings:

View Article

Problems with UTF-8 vs LATIN-1-GUESSED

So I can open the csv file in a separate pane inside the IDE just to read the data as strings separated by commas, but I can't get the csv file loaded into a python/pandas spreadsheet or perform actual...

View Article

Incorrect string value error for unconventional characters

So I'm using a wrapper to fetch user data from instagram. I want to select the display names for users, and store them in a MYSQL database. I'm having issues inserting some of the display names,...

View Article
Browsing all 1056 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>