Quantcast
Channel: Active questions tagged charset - Stack Overflow
Browsing latest articles
Browse All 58 View Live

Does UTF-8 content could be malformed in Java

I am trying to create a test case in java to testdecoder.onMalformedInput(CodingErrorAction.REPLACE);decoder.onUnmappableCharacter(CodingErrorAction.REPLACE);I need some character in UTF_8 Charset...

View Article


How to get hex out of the string?

I am reading a text file in Java line by line. For debugging purpose, I would like to get the hex value of the string to check how it is encoded.For example:This is my text-file:äppletreeThis is how I...

View Article


mysql function returns '??????' instead of correct string stored in table...

I have following situation:CREATE TABLE `city` ( `City_ID` int(11) NOT NULL, `CityName` varchar(20) NOT NULL, `Nomer` smallint(6) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8...

View Article

How to convert unicode text to readable text

I use UrlFetch to get web content in Google AppsScript.Problem is that the content I get is:Kurulu\u015f Osman - \u0627\u0644\u0645\u0624\u0633\u0633 \u0639\u062b\u0645\u0627\u0646When I use...

View Article

Server sent charset (255) unknown to the client, what to do? [duplicate]

How to solve this? For the record, I do not have access to my.ini file so that option I cannot try. I am looking for other options to solve this.I use MySQL 8.1 command client, EasyPHP Devserver and...

View Article


How to set vscode terminal charset(for decoding) to GBK, or set vscode gcc...

When i use the button "run C/c++ file" to run a ".c" file, and i got wrong characters in my terminal(default by powershell).all is on windows 11the .c file is utf-8 formatafter run task finished, i...

View Article

what are exfat disk file name limitations?

Have lots of failures copying my disk to another, exFAT disk.Specifically, file names with ':', '|' chars did not get through.What is the allowed charset?Is there a program to solve the issue, like...

View Article

Memory usage of String java

I want to calculate size of my Message objects in my project. I use the protobuf protocol for serializing and receiving records. In calculation I get a problem. I want to calculate size of Strings...

View Article


Directus error: foreign key constraint 'test_tes_foreign' are incompatible

In Directus version 10:I set DB_CHARSET = "utf8mb4" in the .env file but I get this error when creating fields :"alter table test77777 add constraint test77777_test_foreign foreign key (test)...

View Article


Image may be NSFW.
Clik here to view.

Html form set content type in requset header for charset utf-8

May be a basic question but I am struggling with it.Following it the HTML form on submitting the Content-Type:application/x-www-form-urlencoded without charset:utf-8.<!DOCTYPE html><html...

View Article

(Flutter, Vue, Springboot) Which options(about charset) can affected to...

I'm working on an IOS deployment.My project is consist of flutter, vue, spring boot and all of system is setting as UTF-8. But I get a reply of about text error reject message again. And this is not...

View Article

having character encoding problem on my blog content in php application

On my cakephp 3.6 project, in a page i am using ckeditor to save some content to my database. Then on my nextjs project i'm using an api to show it on frontend. But i am having some issues that seems...

View Article

How to fix the encoding of a string in JavaScript

I have received a broken string from another piece of software. I would have liked to fix its encoding in JavaScript but I feel I am missing something.Here's an exemple of broken string: DétectéÃ...

View Article


How to convert a string into bytes in specific charset (encoding) using...

I want to generate text bytes in various charsets (encodings), such as ISO-8859-1, Big5, UTF-8, UTF-16, etc., mostly for testing purposes (i.e. to make sure my app script can correctly handle the...

View Article

Angular web app conversion from UTF-8 to UTF-16

What will be required changes to add support of UTF-16 to an Angular 14 web app ?Currently, its UTF-8 and I have made the changes within html meta for UTF-16 as below,<meta charset="UTF-16">to...

View Article


Copy java.nio.charset.spi.CharsetProvider from MATA-INF/services to "fat" jar...

I'm trying to add jcharset ([https://www.freeutils.net/source/jcharset/]) to my project, by I couldn't archive it for the last few days. Let's I describe my env:spring boot fat jarjava 17docker image...

View Article

Arabic text shows strange characters الÙباىانگليسى،

I have Arabic text (.sql pure text). When I view it in any document, it shows like this:حرÙاولالÙباىانگليسى،حرÙاضاÙهمثبتBut when I use an HTML document with <meta...

View Article


utf-8 vs latin1

What are the advantages/disadvantages between using utf8 as a charset against using latin1?If UTF can support more chars and is used consistently wouldn't it always be the better choice? Is there any...

View Article

PLSQL Microsoft Graph sending mails, Special Characters

i wrote the code using PLSQL Oracle, how send mails via Microsft Graph API, after creating the json structure to send via https (using JSON_OBJECT_T classes in plsql), im having troubles when in the...

View Article

How to setup VSCode encoding/charset for whole project/workspace?

I work on a project which uses latin1 encoding. How can I setup VSCode to use it no matter what machine, OS or local config it's running on?

View Article

Server Upgrade - Now my special characters are displaying incorrectly...

Here is a link that explains the problem I'm now havinghttps://www.weblogism.com/item/270/why-does-e-become-aOn my old server the special characters were displaying fine. I started a new server with...

View Article


Weird string encoding issue in Java [closed]

We have a Java code that, when running on the client's machine, seems to behave incorrectly with regard to character encoding. Unfortunately we're unable to reproduce the issue locally. Here's the...

View Article


What is the proper charset for decoding System#lineSeparator?

Let us say we need to verify the following method. /** * Prints {@code hello, world}, to the {@link System#out}, followed by a system dependent line separator. * * @param args command line arguments....

View Article

Springboot not loading my charset SPI library

I have a charset library, MyCharsetProvider.jar, containing SP code as a subclass of java.nio.charset.spi.CharsetProvider as per specs...

View Article

How to get an operating system's internal/keyboard charset, related to...

PrefaceI'm currently working on a small app thatliterally types the inputfrom the system Clipboard (using Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);),by simulating the...

View Article


Why does the character encoding of HTML source code need to match the one...

The title very much describes the question. The HTML standard says explicitly that the only value acceptable for the <meta charset> tag is UTF-8, and even the Nu Html Checker throws an error if...

View Article

Error on calling an API using Webclient - charset=UTF-8

I have a problem on calling an API using Webclient.In my request a see that Webclient automatically put this header:Content-Type:...

View Article

Erase charset from java WebClient multiform-data post

We are making a post request in our spring boot application with Java WebClient. The request has MULTIPART_FORM_DATA as MediaType as you can see in the code below:public...

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



MySQL query result cannot be json encoded in PHP [duplicate]

I have the following PHP API which runs a MySQL query, when;$sql = "select article_id, title, summary, image_url from articles limit 20"; I get the following...

View Article
Browsing latest articles
Browse All 58 View Live


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