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

Detecting invalid UTF-8 characters in JavaScript

I've already posted several similar questions and I apologize for that, but still have not found a solution. I have a database where some entries are not legal UTF-8. If I know which entries are not, I...

View Article


How to keep UTF8 encoding during xml parse, attribute value change and file...

I'm writing a programm in Python, my goal is to :read input xml file one line at a timefor each line find "CH" attributechange attribute value : translate from french to portugesewrite changed line...

View Article


What is the difference between UTF-8 and Unicode?

I have heard conflicting opinions from people - according to the Wikipedia UTF-8 page.They are the same thing, aren't they? Can someone clarify?

View Article

How can I use Aeson to decode JSON files with Unicode characters?

(Apologies if I should say UTF8 instead of Unicode.)I've already come across this question, but couldn't make reason out of it after several minutes.The starting point of that and my question is the...

View Article

PHP - U+FFFD Unicode � error instead of the char

I have tested my website on localhost but once uploaded i see that in theaddress is not displayed correctly. The address contains the following errror: 37 Gr�ce Aveinstead of37 Grâce Ave,Here there is...

View Article


Using Javascript's atob to decode base64 doesn't properly decode utf-8 strings

I'm using the Javascript window.atob() function to decode a base64-encoded string (specifically the base64-encoded content from the GitHub API). Problem is I'm getting ASCII-encoded characters back...

View Article

Getting "stream did not contain valid UTF-8" while trying pull in data into a...

I have some data stored inside a storage account in Azure.I have created a datastore linking this storage account to the Azure Machine Learning workspace.I have created 2 data assets in the azure ML...

View Article

'Malformed UTF-8 characters, possibly incorrectly encoded' in Laravel

I'm using Laravel (a PHP framework) to write a service for mobile and have the data returned in JSON format. In the data result there are some fields encoded in UTF-8. The following statementreturn...

View Article


How to fix double-encoded UTF8 characters (in an utf-8 table)

A previous LOAD DATA INFILE was run under the assumption that the CSV file is latin1-encoded. During this import the multibyte characters were interpreted as two single character and then encoded using...

View Article


Modify the output of this script so that it is read as BOM-less UTF-8

I have several .csv files in a folder with the second column empty and I would like to fill it with the data present in as many csv files with the same...

View Article

I am getting a utf 8 error. Can you help me WİTH python?

I am writing a program to create database diagrams. Even though my database is utf-8, I am getting a utf 8 error. Can you help me?error :metadata.reflect(engine) UnicodeDecodeError: 'utf-8' codec can't...

View Article

UTF8 to/from wide char conversion in STL

Is it possible to convert UTF8 string in a std::string to std::wstring and vice versa in a platform independent manner? In a Windows application I would use MultiByteToWideChar and WideCharToMultiByte....

View Article

PHP: Convert any string to UTF-8 without knowing the original character set,...

I have an application that deals with clients from all over the world, and, naturally, I want everything going into my databases to be UTF-8 encoded.The main problem for me is that I don't know what...

View Article


Solucionar error SyntaxError: (unicode error) 'utf-8' [closed]

Al insertar tildes o caracteres latinos me lanza un error debido a la codificación ¿cómo soluciono?Tengo que usar los caracteres antes mencionados debido a que mi interfáz es en español.enter image...

View Article

PHP DOMDocument loadHTML not encoding UTF-8 correctly

I'm trying to parse some HTML using DOMDocument, but when I do, I suddenly lose my encoding (at least that is how it appears to me).$profile = "<div><p>various japanese...

View Article


Deprecated header replacement

A bit of foreground: my task required converting UTF-8 XML file to UTF-16 (with proper header, of course). And so I searched about usual ways of converting UTF-8 to UTF-16, and found out that one...

View Article

convert bytes to ascii if possible, hex otherwise

Imagine you have this byte array: b = bytes([0x00, 0x78, 0x6f, 0x58, 0x00, 0x4f, 0x30, 0x00]and you want to print it in a somewhat readable way, using ASCII when possible and hex when not. You could...

View Article


Image may be NSFW.
Clik here to view.

How to handle WM_CHAR with /utf-8 and UTF-8 manifest

I'm having trouble figuring out how to update my WM_CHAR handler to work with the new /utf-8 execution mode +manifest. I have it working correctly if I use strings from source with unicode characters....

View Article

how python3 decode() knows how to delimit the code points?

How does the python3 decode() function knows how to delimit the hexs from each other given there is no delimiter contained in a byte string right?Do b-strings have delimiters under the hood?Utf-8...

View Article

Perl regex to replace invalid UTF-8 characters in string

I have the following code that can detect non-valid utf-8 characters in a string(regex taken from https://www.w3.org/International/questions/qa-forms-utf-8 and Regex to detect invalid UTF-8 string)use...

View Article
Browsing all 1045 articles
Browse latest View live


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