Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow

Azure functions decoding utf8 strings in Python

I'm running this code on my Python code with version 3.10.6:def downloadRevistaXML(): url= f"https://revistas.inpi.gov.br/txt/RM2823.zip" try: response = requests.get(url) response.raise_for_status()...

View Article


Image may be NSFW.
Clik here to view.

Azure Data Factory Exported CSV with UTF-8 Encoding not Showing Special...

I am working on an ADF pipeline to export a CSV file from a Snowflake table. The table contains some fields with special characters (i.e. French language characters)If I look at the CSV output in...

View Article


Character encoding of GET request parameter

Hello fellow Stackoverflowers.I have an issue that i need some help with:We're making an http GET web service call from a smartphone app to a Java/Spring MVC application. We're on a Tomcat application...

View Article

Arduino UCS2 to UTF text form

I have output from my device in UCS2.This UCS2 is in hex, and I make from ucs2 hex utf8 hex., these hexes are in String form. The question is, how to make from this hexes normal text form?I tried to do...

View Article

Image may be NSFW.
Clik here to view.

Set charset different from UTF-8 in JSON Response

I have this get request in my controller in ASP.NET Core project[HttpGet][Route("api/controller/getlastresult/{id}")]public IActionResult GetLatestResultForController(string id){ Response.ContentType =...

View Article


UTF-8 encoding of application.properties attributes in Spring-Boot

In my application.properties I add some custom attributes.custom.mail.property.subject-message=This is a äöüß problemIn this class I have the representation of the custom...

View Article

Java .properties file not support Turkish Character Value

I want to give Turkish character as a value in my .properties file. But outcome not shown wellI put into properties filemyvalue=BİLGEHANOutcome B?LGEHANI found some solutions in stackoverflow. But I...

View Article

Load data with base64 encoding with loadDataWithBaseURL

I have an app which use WebView to show some local html to users. The app worked fine in last 2 years, but recently I'm getting too many reports that the app is showing some kind of error like...

View Article


Conversion between NVARCHAR to VARCHAR

I've got an Oracle DB with ALL the character columns defined as NVARCHAR or NCHAR or NCLOB, using charset UTF-16.Now I want to migrate to a new DB that has charset UTF-8. Since it can store unicode...

View Article


Character-encoding problem with string literal in source code (utf8 no bom)

$logstring = Invoke-Command -ComputerName $filesServer -ScriptBlock { param( $logstring, $grp ) $Klassenbuchordner = "KB "+ $grp.Gruppe $Gruppenordner = $grp.Gruppe $share = $grp.Gruppe $path =...

View Article

Why Utf8 is compatible with ascii

A in UTF-8 is U+0041 LATIN CAPITAL LETTER A. A in ASCII is 065.How is UTF-8 is backwards-compatible with ASCII?

View Article

wrong text file output of special characters using UTF-8 enconding in R 3.1.2...

I am having problems to write a csv file with Spanish accents, using R 3.1.2 and Mac OS X 10.6. I cannot write words with accents into text file.When I do:con <-...

View Article

NodeJS and Iconv - "ISO-8859-1" to "UTF-8"

I created a NodeJS application which should get some data from an external API-Server. That server provides its data only as 'Content-Type: text/plain;charset=ISO-8859-1'. I have got that information...

View Article


The content type application/xml;charset=utf-8 of the response message does...

I know this question has been asked a few times before, but the solutions given either don't work for me or I'm too ignorant to fully understand how to implement the solution.So, the website I am...

View Article

Does the Unicode Consortium Intend to make UTF-16 run out of characters?

The current version of UTF-16 is only capable of encoding 1,112,064 different numbers(code points); 0x0-0x10FFFF.Does the Unicode Consortium Intend to make UTF-16 run out of characters?i.e. make a code...

View Article


Get multibyte character count before match with preg_match()...

I'm trying to search a UTF8-encoded string using preg_match.preg_match('/H/u', "\xC2\xA1Hola!", $a_matches, PREG_OFFSET_CAPTURE);echo $a_matches[0][1];This should print 1, since "H" is at index 1 in...

View Article

Image may be NSFW.
Clik here to view.

invalid byte sequence for encoding "UTF8": 0x00

this is the PostgreSQL 15 table define:CREATE TABLE public.tex_sync ( id int8 GENERATED ALWAYS AS IDENTITY( INCREMENT BY 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1 NO CYCLE) NOT...

View Article


UTF-8 encoding problem in Spring MVC

I' ve a Spring MVC bean and I would like to return turkish character by setting encoding UTF-8. but although my string is "şŞğĞİıçÇöÖüÜ" it returns as "??????çÇöÖüÜ". and also when I look at the...

View Article

Java Spring resttemplate character encoding

I'm using the Java Spring RestTemplate for getting a JSON via a get request. The JSON I'm getting has instead of special characters like üöä or ß some weird stuff. So I guess something is wrong with...

View Article

Image may be NSFW.
Clik here to view.

What characters or encoding is replacing spaces in datetime format?

I am trying different cultures in spanish language and testing some latin and south american cultures.When using "es-MX" culture the console shows me correctly the date, but when using "es-CO" culture...

View Article

How to save .txt as Unicode or UTF-8 in VBA

I want that all my files be saved in unicode or utf-8 format and not ANSI.Here is the code:Sub cvelle()Dim iRow As LongDim iFile As IntegerDim sPath As StringDim sFile As StringFor iRow = 1 To...

View Article


Trim unicode whitespace in PHP

How can I trim a string(6) " page", where the first whitespace is a 0xc2a0 non-breaking space?I've tried trim() and preg_match('/^\s*(.*)\s*$/u', $key, $m);.Another question: How can I reliably copy...

View Article


Python CGI - UTF-8 doesn't work

For HTML5 and Python CGI:If I write UTF-8 Meta Tag, my code doesn't work. If I don't write, it works.Page encoding is UTF-8.print("Content-type:text/html")print()print("""<!doctype...

View Article

Python insert UTF8 string into SQLite

I know there are similar questions, but the answers are distinct and kind of confusing.I have this string:titulo = "Así Habló Zaratustra (Cómic)"When I try to insert it to the SQLite database I get the...

View Article

Can ELF symbols be represented in UTF8?

May a symbol in the ELF table use UTF8 characters or is it restricted to ASCII?Note: It is not a problem that I am trying to solve, it is more something I am wondering.

View Article


On converting the UFT-8 xml to Unicode in Powershell, $encoding attribute...

Getting this line in output file after converting UTF-8 to Unicode<?xml version="1.0" encoding="bigEndianUnicode"?>But I need below line in the xml<?xml version="1.0" encoding="UTF-16"?>

View Article

Does checking a prefix string by comparing to a byte slice fail?

I'm learning the book "Go Programing Language", when it introduce string, it says Go use utf-8 encoding system, so it's easy to check whether a string is a prefix/suffix of another base string. Use the...

View Article

Java throws illegal character: '\ufeff' when connecting to Microsoft SQL...

I'm trying to create a simple Java application to connect to a Microsoft SQL Server database for a login interface.I’ve installed the following:JDK 24MySQL Connector/J 9.2.0Here's the code I'm...

View Article

error: illegal character: '\ufeff' in java

Got this error when compiled java code in ubuntu.![Got this error][1]error: illegal character: '\ufeff'import java.net.*;^error: class, interface, or enum expectedimport java.net.*; ^

View Article



How to efficiently calculate the fraction (valid UTF8 byte sequence of length...

This will be a long post. And it absolutely has nothing to do with homework, I am just curious, and this won't have immediate practical benefits, but that is like pursuing pure science, you never know...

View Article


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