Utf-8 Questions
Ad
Decode an UTF8 email header
I have an email subject of the form: =?utf-8?b?t3.....?= the body of the email is utf-8 base64 encoded - and has
JSON charset problem when sending to firebase from js
I'm saving data to firebase rtdb through js sdk (6.3.1) using: firebase.initializeapp(firebaseconfig); var data={
Firebase REST API - how to set character encoding?
I'm calling the firebase rest api from a node.js process. the problem i'm seeing is that posts fail when the post body contains non-ascii
UTF-8 characters mangled in HTTP Basic Auth username
I'm trying to build a web service using ruby on rails. users authenticate themselves via http basic auth. i want to allow any valid utf-8
xxd: how to simply revert without adding "00000000:"?
Sometimes i have unwanted characters in my files (db tables, git content, etc). when i list them with xxd i have the utf-8 code,
Convert utf-16 to utf-8 using python
I am trying to convert a huge csv file from utf-16 to utf-8 format using python and below is the code: with
Java Gradle Eclipse - UTF-8 symbols showing before build in IDE but not after build
I'm fairly new to coding and currently im trying to build my first fat jar with gradle in eclipse. my project generates a html file with data i
UTF-8 vs UTF-16 and UTF-32 conversion confusion
I'm kinda confused about conversion of unicode characters into hexadecimal values. i'm using this website to get hexadecimal value for
Results of attempt to translate a Discord Message with Google Translate API is just a list of the letters making up the input
Edit4: further review, it works if i send text in jp and translate it to en. i now believe that it's returning the string as utf-8 byte
Encode to UTF-8. Encode character eg. ö to ö
I want to encode a string in android to utf-8. for example this string: grüne Ähren beißen flöhe to
Ad
How to fix "OverflowError: Unsupported UTF-8 sequence length when encoding string"
Getting follwoing error while converting pandas dataframe to json overflowerror: unsupported utf-8 sequence length when
GO generate incorrect UTF-8 chars like ö
Ik building an go application where i want to output a cvs string from a buffer out via the http server. i'm putting it into the csv
Using a slot-scope to show text, doesn't show ñ character?
I'm using a slot-scope to show text where there could be special characters like ñ or letters with accents, how to make sure those show up the
Sending data from JavaScript to C++, byte values over 127 are replaced with "replacement character"
I'm trying to send buffers of data from a javascript application to a c++ application via zeromq (c++ and npm zeromq). if the buffer contains a
What is the need of utf-8 encoding for things such as socket communication?
I am using nodejs as my backend, and sockets for a texting part of my application. i researched about using sockets and came across an interesting
How to convert a string into it's real binary representation (UTF-8 or whatever is currently used)?
I want to experiment with utf-8 and unicode, for that i want to build a small website which helps me to understand the encoding better.
UnicodeDecodeError when trying to read docx file
Error occurs when opening docx file using python 3 when i tried to run:
How to encode utf8 code units to String and read back Flutter
My user input is a string, which also has emojis, so i have converted it to a list of utf8 code units. when i send this response to server, it
Json find key contain some char and write key and value to new json file with python
I need find if key contain dash, than need to get this key and value to new json file. this is my code: #coding=utf-8
Web crawling: python saving file with -o file.json as utf-8: the output shows characters like \u00a9
Using scrapy crawler i am trying to extract data from html page and save the output as json file using command line: scrapy crawl
read a zipped csv from S3 into python dataframe
I have a bucket in s3 with a csv in it. there are no none-ascii characters in it. when i try to read it using python it will not let me.
Ad
Cannot convert all elements of csv file to python objects
I'm trying to convert all csv elements to python objects using following python script, but not all characters in csv file are in utf-8 and i've
python failure on output redirect/pipe
In my following python code # coding: utf-8 # generate.py my_locale = [ { 'tag':'test_tag_long__body',
How to convert XML enconding in Node
I'm trying to parse xml file in node with
Vietnamese crawled characters doesn't appear as they do on the web
I'm crawling some reading from the web and save them as utf8 txt:
utf-8 to string gets extra added characters
In android when i am getting an utf-8 result from a server and i take the output of the server to a string what happens is i get extra
How can I use an utf-8 file name retrieved from a YAML file for os.path.isdir()?
I am loading a folder path from a config.yml file. example name: c:/users/name/desktop/ü which contains an utf-8 character. when i
Unable to decrypt the xor-base64 text
I am using the below code to encrypt and decrypt the data. now i want to encrypt the data from node js and want to decrypt the data from go lang.
Converting String consisting of octal numbers to UTF-8 text
Hello this is my first question on this site ever. i'm making a program that converts text to octal, but also octal to utf-8 text again.
Convert Facebook json file sequences like \u00f0\u009f\u0098\u008a to emoji characters
I have downloaded my facebook data as json files. the json files for my posts contain emojis, which appear something like this in the json file:
Node.js, russian characters in the query are poorly decoded
I'm use curl -lk 'https://my-site.ru/?q=повар' and in nodejs server req.url i see
Flutter :[ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception
I have this error and i can't understand where is my mistake [error:flutter/lib/ui/ui_dart_state.cc(166)] unhandled exception:
Ad
File name with special character "^" unrecognized by pattern.match (RegEx function)
I'm working with python 3.6.5 on a winows 10. i can not verify if a file exists in a directory or not. the problem seems to come from the
How to get utf8 characters to show in a laravel project
I'm currently building a website for a polish company and having some trouble with the special signs showing up as a square with demo in it: img
I'm converting ints to chars and trying to send them from a C client to a Python server on another computer. Getting 'send: Bad address'
On one computer with the client (written in c) i get the error send: bad address when i try to send chars to another computer with a
Node.JS how to decode ISO-8859-1 into UTF-8?
I'm querying a database in iso-8859-1 but since node runs in utf8 mode, i must convert the data being returned this particular dbms. i
React app rendering html entities such as ampersand as escaped
I have a react app embedded in wordpress page. it pulls content from a json api and displays it in various areas. my problem is that all
Exporting CSV with League/CSV doesn't encode umlauts
I am exporting a model in laravel 5.7, using the league/csv package:
Laravel route being stuck in UTF-8
I have this controller to redirect: $zone='لندن'; $type='خانه'; return redirect()->route('searchresult',['zone' =>
Wierd binary-string for values in CSV-file (import in Laravel containing danish æ, ø and å-letters)
I have a file that has the mime-type: text/csv. i want to iterate through it and make a bunch of string-manipulation.
Using UTF-8 string-literal prefixes portably between C++17 and C++20
I have a codebase written in c++17 that makes heavy use of utf-8, and the
How to response json TIS-620 to UTF-8 in Node js + Express (API)
I have a problem to get data in my language with tis-620 [mysql structure] create table `foo` ( `id` int(11) not null,
Javascript: convert CSV string into a) UTF-8 and b) a 2D array
Two questions in one, not sure if that's allowed, but they're directly related to the same code. i retrieve a csv string as a http response in
Ad
Android: sending string from EditText with JSON to PHP - encoding troubles
I'm having troubles with encoding text from android edittext when sending it with json to php script. first in android i get the text from
JavaScript substring without splitting emoji
In my js i am trying to substring() text which generally works but unfortunately decapitates emojis. usatext =
Decode utf-8 email attachment filename in python?
I got an email with an attachment name that looks like: =?utf-8?b?cmvhbf9hdhrhy2htzw50x25hbwuuegxz?= however if
Python - Convert utf8 special characters (accented) to extended ascii equivalent
I would like to use python to convert utf8 special characters (accented, etc) to their extended ascii (purists are going to say there isn't such a
saving and getting arabic language in mysql using java
While saving an arabic word into mysql table, i am getting a string starting with &# and each block have semicolon. am using jsp as front
C++ utf-8 literals in GCC and MSVC
Here i have some simple code: #include <iostream> #include <cstdint> int main() { const unsigned char
Change database file plain text to sqlite
I have a sqlite db and wanted to edit by using a text editor. so, i dumped the sqlite database file to plain text format and then edited and
All values of JSON data are not inserted in MySQL Database (for UTF-8 characters)
I get a text from a database in utf-8 using json and it is in a file right now. when i print the data it is: توحید
UTF8 encoding of multi-byte characters in C/Assembly
I've a c program that looks like this: #include <stdio.h> #include <locale.h>
UTF-8 input on UART
Based on mika tuupola's tutorial i am trying to use serial
Convert CP437 using JavaScript Encoding API in Browser
Is there a way to convert cp437 to utf8 in browser using new
Ad
Laravel 5 eloquent not storing special characters in database
I am using laravel 5.2 and here are my database configuration settings: 'charset' => 'utf8', 'collation' =>
Javascript RegEx UTF-8
I know javascript’s regex only supports the \b word boundary class on ascii strings. but is there anything i can do to make it work with utf-8
bytes to string conversion with invalid characters
I need to parse udp packets which can be invalid or contain some errors. i would like to replace invalid characters with . after a
Detect / replace utf characters
I want to detect and/or replace weird utf, non-emoji characters that break my tokenization pipeline, like \uf0fc, which renders like
Using UTF-8 Datastreams in cURL, when is the datastream converted from UTF-8 to ASCII?
When using curl to take character streams off of the internet, when is the datastream converted from a multibyte datatype to a single byte
How to save/load a 2d array containing unicode to/from a .txt file [Python] [encoding issues][utf8]
So the basic issue i am having is when i write to the txt file the unicode character \u2656 becomes this b'\xe2\x99\x96' (i
MySQL data show nothing
I insert korean characters in mysql database. but data shows nothing. as well as in phpmyadmin. anyone know what problem is and how to solve?
Laravel: Encode JSON responses in UTF-8
I want to encode the json responses of my api to utf-8, but every time i make a response i don't want to do this: return
Perl wrong UTF-8 output
I have the following program: #! /usr/bin/perl use strict; use warnings; use utf8; print
Utf-8 decoding with Python
I have a csv with some data, and in one row there is a text that was added after encoding it in utf-8. this is the text:
BOM character randomly appearing in Laravel localization function
I've got a weird case of a bom character (%ef%bb%bf) getting prepended to the output of the localization function __($key) in laravel 5.5
Ad
possibly incorrectly encoded,Malformed UTF-8 characters
I am trying to fetch the records in laravel then it will give me following error. malformed utf-8 characters, possibly incorrectly
Handle UTF-8 response from Async Http Request
I have been going head over heels to solve this. i have a json feed that returns utf based data for example:
Non-UTF8 Characters in Git Diff (like ESC[1;33m] )
Git diff keeps showing non-utf8 characters. suggestion from
Detect ASCII-whitespace in UTF-8 stream
Is it safe to use ch >= ' ' && ch <=' ' as a condition that detects ascii whitespace. that is, i am
Character encoding outputs wrong between local and server
I have a laravel 5.6 installation, with config/database.php options for charset and collation set as utf8mb4 and
Laravel using View Composer in my routes with htmlspecial error
I was trying to do a query in my routes for the view composer to load all the records and count it and display it in my sidebar for purposes.
nl2br() works on one page but the exact same code doesnt work on another
Ok so i simply call from mysql some text, and then i run it through nl2br to preserve linebreaks and all its symbols and what not. code
How do I check that string has only international letters and spaces in UTF8 in PHP?
In python i could've converted it to unicode and do '(?u)^[w ]+$' regex search, but php doesn't seem to understand international w, or does
Why do i have to use set_charset("utf8") even though everything is utf-8 encoded? (MySQLi-PHP)
My table's collation is utf8_general_ci. my pages are encoded with utf-8 (without bom). within my pages, my equiv meta tag sets
Finding files ISO-8859-1 encoded?
I have a bunch of files with a mixtures of encodings mainly iso-8859-1 and utf-8. i would like to make all files utf-8, but when trying to
unicode() vs. str.decode() for a utf8 encoded byte string (python 2.x)
Is there any reason to prefer unicode(somestring, 'utf8') as opposed to somestring.decode('utf8')? my only
Ad
Howto identify UTF-8 encoded strings
What's the best way to identify if a string (is or) might be utf-8 encoded? the win32 api istextunicode isn't of much help here.
What could go wrong if I convert ANSI encoded files to UTF-8?
I have an existing asp.net 2.0 website, stored in team foundation server 2005. some of the pages/controls are encoded as ansi (according to
Is it just me, or are characters being rendered incorrectly more lately?
I'm not sure if it's my system, although i haven't done anything unusual with it, but i've started noticing incorrectly rendered characters
Elegant way to search for UTF-8 files with BOM?
For debugging purposes, i need to recursively search a directory for all files which start with a utf-8 byte order mark (bom). my current solution
How do I input 4-byte UTF-8 characters?
I am writing a small app which i need to test with utf-8 characters of different number of byte lengths. i can input unicode characters to
How to make MySQL handle UTF-8 properly
One of the responses to a question i asked
How do I reverse a UTF-8 string in place?
Recently, someone asked about an algorithm for
How to convert a file to utf-8 in Python?
I need to convert a bunch of files to utf-8 in python, and i have trouble with the "converting the file" part. i'd like to do the
Case-insensitive UTF-8 string collation for SQLite (C/C++)
I am looking for a method to compare and sort utf-8 strings in c++ in a case-insensitive manner to use it in a
Why is ¿ displayed different in Windows vs Linux even when using UTF-8?
Why is the following displayed different in linux vs windows? system.out.println(new string("¿".getbytes("utf-8"), "utf-8"));
UTF-8 in Windows
How do i set the code page to utf-8 in a c windows program? i have a third party library that uses fopen to open files. i can use
Ad
How to tell if text on the windows clipboard is ISO 8859 or UTF-8 in C++?
I would like to know if there is an easy way to detect if the text on the clipboard is in iso 8859 or utf-8 ? here is my current code:
PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string
What i want to do is to remove all accents and umlauts from a string, turning "lärm" into "larm" or "andré" into "andre". what i tried to do was
Setting ISO-8859-1 encoding for a single Tapestry 4 page in application that is otherwise totally UTF-8
I have a tapestry application that is serving its page as utf-8. that is, server responses have header: content-type:
Loading UTF-8 encoded dump into MySQL
I've been pulling my hear out over this problem for a few hours yesterday: i've a database on mysql 4.1.22 server with encoding set to
How does the UTF-8 support of TinyXML work?
I'm using tinyxml to parse/build xml files. now, according to
How to get UTF-8 working in Java webapps?
I need to get utf-8 working in my java webapp (servlets + jsp, no framework used) to support äöå etc. for regular finnish text and
How Do You Write Code That Is Safe for UTF-8?
We have a set of applications that were developed for the ascii character set. now, we're trying to install it in iceland, and are running into
How to sort an array of UTF-8 strings?
I currentyl have no clue on how to sort an array which contains utf-8 encoded strings in php. the array comes from a ldap server so sorting via a
How do I truncate a java string to fit in a given number of bytes, once UTF-8 encoded?
How do i truncate a java string so that i know it will fit in a given number of bytes storage once it is utf-8 encoded?
How to check whether a file is valid UTF-8?
I'm processing some data files that are supposed to be valid utf-8 but aren't, which causes the parser (not under my control) to fail. i'd like to
A script to change all tables and fields to the utf-8-bin collation in MYSQL
Is there a sql or php script that i can run that will change the default collation in all tables and fields in a
Ad
C++ strings: UTF-8 or 16-bit encoding?
I'm still trying to decide whether my (home) project should use utf-8
How to handle UTF-8 characters in sqlite2 to sqlite3 migration
Trying the easy approach: sqlite2 mydb.db .dump | sqlite3 mydb-new.db i got this error:
Ad
Blog Categories
Ad