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

Scrapling Save PDF File Locally

I have to scrape a website which returns a static PDF file. The only Python package that can access the document successfully is scrapling. However, the PDF file returned is not saved correctly in my...

View Article


Adding BOM to UTF-8 files

I'm searching (without success) for a script, which would work as a batch file and allow me to prepend a UTF-8 text file with a BOM if it doesn't have one.Neither the language it is written in (perl,...

View Article


mysqldump exporting data in a bad character set

Yesterday for the first time I exported my Mysql database and I found some very strange characters in the dump such as:INSERT INTO `piwik_archive_blob_2013_01` VALUES...

View Article

iconv: illegal input sequence at position

I have a bash script which downloads some files from a url and stores them into a folder named "data1". Since these files are downloaded as .zip then the next step is to unzip them. After that, the...

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


How to perform validation on the coding that does not support data beyond BMP...

My database is utf8 and does not support inserting data beyond BMP character encoding such as emoticons. But I don't want to set the database to utf8mb4. How to perform validation on the backend that...

View Article

Getting error 'Some bytes have been replaced with the Unicode substitution...

I am getting an error when trying to open my VS2015 project:Some bytes have been replaced with the Unicode substitution character while loading file ... with Unicode (UTF-8)This seems to be related to...

View Article

Is there a way to map a utf16 byte sequence into the length a utf8 byte...

I have a valid array of UTF-16LE encoded byte. Some are surrogates.Is there a way to tell from their bits how many UTF-8 bytes would be needed?I know I can do a conversion to UTF-8 and count, but I...

View Article


Hibernate and SQL Server with Unicode (UTF-8/UTF-16)

I want to setup Hibernate (6.6) and SQL Server (2019) with Unicode. In the Microsoft docs I found the information, that since SQL Server 2019 the VARCHAR type can be used with UTF-8, if the collation...

View Article


Image may be NSFW.
Clik here to view.

Golang mgo MongoDB bson.ObjectId non utf-8 error

I'm developing in go on my Mac using mongo and mgo driver.Everything works great on my Mac. When my friend works on the same codebase from his windows machine, we get these weird non utf-8...

View Article

Meta charset doesn't consistently respect French accents

Environment: html website (no cms), local repo managed with visual studio, connected to an AzureDevOps staging environment. Meta charset defined as "utf-8".Issue: If I paste French copy into a page,...

View Article

Two almost identical html/css pages renders differently

Hi,I'm upgrading a PHP 5 webpage to PHP 8. As part of the update, I'm also switching the character encoding from charset=iso-8859-1 to charset=utf-8, and have converted the files to UTF-8 without...

View Article

Issue with UTF-8 String Handling in Visual Studio when file's encoding is...

I’ve encountered an issue where Visual Studio 2022 doesn’t seem to handle u8 strings correctly. Here’s the code I used for testing:void print_str(const std::string& s) { for (int i = 0; i <...

View Article


Anyone know what direction I go from here [closed]

I have tried everything to decipher this code and it is whooping me!! If anyone has any pointers on which direction I go from here I would be eternally grateful. Here is a snippet from the...

View Article

Japanese Character set via ODBC to Access and Excel

I've hit an issue with UTF-8 characters and having had a trawl around here and the web I can find similar issues but everything I have tried doesn't work. For the record I'm self-taught so feel free to...

View Article


Unicode characters Ú and É are displayed incorrectly as Ú and É

I have a UTF-8 file with Spanish text, and some words with accent marks are displayed incorrectly in some of the software.I believe my file is correct. For example, the name 'JESÚS' is encoded as 4A 45...

View Article

Getting the actual length of a UTF-8 encoded std::string?

My std::string is UTF-8 encoded so obviously, str.length() returns the wrong result.I found this information but I'm not sure how I can use it to do this:The following byte sequences areused to...

View Article


Incorrect string value: '\xF0\x9F\x8E\xB6\xF0\x9F...' MySQL

I am trying to store a tweet in my MYSQL table. The tweet is:quiero que me escuches, no te burles no te rias, anoche tuve un sueño que te fuiste de mi vida 🎶🎶The final two characters are both 'MULTIPLE...

View Article

simplest way to read standard JSON with UTF8 Latin Letters

My server only offers Python v2.7.5.This script is working:import jsonwith open('Ranger_Policies.json', 'r') as f: data = json.loads(f.read())for p in data['policies']: print "Service:", p['service']...

View Article

incompatible character encodings: UTF-8 and ASCII-8BIT in render action

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): app/controllers/posts_controller.rb:27:in `new' # GET /posts/new def new if params[:post] @post =...

View Article
Browsing all 1220 articles
Browse latest View live


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