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

How to create simpliest PHP Get API with UTF-8 support?

How to create simplest (less lines of code, less strange words) PHP Get API (so any program made in .Net C# could call URL like...

View Article


Changing the “locale preferred encoding” in Python 3 in Windows

I'm using Python 3 (recently switched from Python 2). My code usually runs on Linux but also sometimes (not often) on Windows. According to Python 3 documentation for open(), the default encoding for a...

View Article


How to convert a u8 to a char in Rust?

I have a function that builds a string based off u8 values in an array. If the u8 is 0 or 10, then I push a specific character. Otherwise, I want to push on the number itself. My issue is that when I...

View Article

remove non-UTF-8 characters from xml with declared encoding=utf-8 - Java

I have to handle this scenario in Java:I'm getting a request in XML form from a client with declared encoding=utf-8. Unfortunately it may contain not utf-8 characters and there is a requirement to...

View Article

Image may be NSFW.
Clik here to view.

Html2canvas image capturing issue with UTF-8 characters

I want to capture my webpage, In order to this I find html2canvas, when I use as shown below ,my UTF-8 (persian) characters get in trouble and this direction destroyed as you see.HTML:<div...

View Article


C# string length validation for SQL Server UTF-8 collation columns

I'm struggling with communicating length validation issues in my C# app to business users for string values that are stored in SQL Server using columns with UTF-8 collation...

View Article

Convert zero-padded bytes to UTF-8 string

I'm unpacking several structs that contain 's' type fields from C. The fields contain zero-padded UTF-8 strings handled by strncpy in the C code (note this function's vestigial behaviour). If I decode...

View Article

How to overload functions string.byte and string.char to support Unicode UTF-8?

I have custom functions utf8Char (decimal) and utf8Byte(char).How can I overload the functions string.char(...) and string.byte(s, i, j) in Lua?Here is an example function what I mean:local...

View Article


python requests.get() returns improperly decoded text instead of UTF-8?

When the content-type of the server is 'Content-Type:text/html', requests.get() returns improperly encoded data.However, if we have the content type explicitly as 'Content-Type:text/html;...

View Article


Image may be NSFW.
Clik here to view.

Losing devnagari text display when Migrating from utf8 to utf8mb4

Currently I have database with mysql(v 5.7.44) tables with collation utf8_unicode_ciWhen I import it to mysql 8.0.31, collation get changed to utf8mb3_unicode_ciAfter reading many posts regarding this,...

View Article

mysql workbench not exporting data with utf8

I have a database encoded in utf8 and I want to export it to a dump file. The problem is that when I do it the data in the dump file are not encoded in utf8. Is there a way to define the encoding when...

View Article

Content type 'text/plain;charset=UTF-8' not supported error in spring boot...

I got the following @RestController inside a spring boot application :@Data@RestControllerpublic class Hello { @Autowired private ResturantExpensesRepo repo; @RequestMapping(value =...

View Article

Image may be NSFW.
Clik here to view.

phpmyadmin database collation issue for utf8mb4

I am using phpmyadmin mysql version 8.0.31Default Server Connection Collation in phpmyadmin of new server is shown = utf8mb4_unicode_ciWhen I download mysql database from old server with mysql v 5.7.33...

View Article


Which Collation to use when VARCHAR can contain ANY possible Unicode character?

The database is currently configured to use the collation Latin1_General_100_CI_AS_SC_UTF8 but that does not work for Arabic characters, and it has also issue with some Eastern European diacritics.I...

View Article

Unicode (UTF-8) reading and writing to files in Python

I'm having some brain failure in understanding reading and writing text to a file (Python 2.4).# The string, which has an a-acute in it.ss = u'Capit\xe1n'ss8 = ss.encode('utf8')repr(ss),...

View Article


Which Collation to use with SQL Server when VARCHAR can contain ANY possible...

The database is currently configured to use the collation Latin1_General_100_CI_AS_SC_UTF8 but that does not work for Arabic characters, and it has also issue with some Eastern European diacritics.I...

View Article

Clickteam fusion String Parser accents

I'm coding in Clickteam Fusion 2.5 using String Parser to retrieve some data from a .txt. It just so happens that when I use accents it returns gibberish.For example, União turns into União (but when...

View Article


Image may be NSFW.
Clik here to view.

IntelliJ IDEA 2024.1 - Change the encoding used to view a file

I want to Change the encoding used to view a file, but the encoding option is disabledthe bottom right of the IJ window is read-only:

View Article

PHP CURL isn't processing encoded return data properly

Im have some minor encoding issues. Im getting a json data string from here (try it...

View Article

Image may be NSFW.
Clik here to view.

Data with utf8_unicode_ci and utf8mb4_unicode_ci dispaly error in text via php

Old Server - with mysql 5.7.33 and data / article content was saved in utf8_unicode_ci as it contains Devnagari / Hindi Font contentData saved in db, database structure with collation and ourput is...

View Article
Browsing all 1174 articles
Browse latest View live


Latest Images

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