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

Does a duplicate of the Unicode newline character exist (that would allow me...

RationaleSometimes, when there are multiple character codes for the same function, some text areas which exclude one type do not exclude the other, allowing the user to bypass such...

View Article


tee with utf-8 encoding

I'm trying to tee a server's output to both the console and a file in Powershell 4. The file is ending up with a UTF-16 encoding, which is incompatible with some other tools I'm using. According to...

View Article


How to detect current terminal encoding and convert user input to and from utf8?

I am writing a golang command line program that accepts user input. This input string has to be converted to UTF-8 and sent to another server for processing. On Linux, the terminal encoding is almost...

View Article

Symfony1.2 is not binding special characters correctly

I need to insert special characters in Oracle database.My code:$api_input['forename']='jéíóú';$stmt->bindParam(':forename',$api_input['forename'], PDO::PARAM_STR | PDO::PARAM_INPUT_OUTPUT,...

View Article

How to decode a Gzip Http Response in Flutter?

I am new to Flutter. I am making a Network Request and I am getting the correct response, but the data is Gzipped. I have decompressed the same in Swift, but with Flutter, I am unable to do that. Can...

View Article


Force encode from US-ASCII to UTF-8 (iconv)

I'm trying to transcode a bunch of files from US-ASCII to UTF-8.For that, I'm using iconv:iconv -f US-ASCII -t UTF-8 file.php > file-utf8.phpMy original files are US-ASCII encoded, which makes the...

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

Server Upgrade - Now my special characters are displaying incorrectly

Here is a link that explains the problem I'm now havinghttps://www.weblogism.com/item/270/why-does-e-become-aOn my old server the special characters were displaying fine. I started a new server with...

View Article


ENCODING option ignored for files opened with RECFM=N">SAS FILE and options RECFM=N encoding="utf-8 --> ENCODING option ignored for...

I have code that composes XML from parts that are stored in a table in a database. I export XML via the FILE command with options RECFM=N so that CRLF characters do not appear at the end. XML is...

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

Java modified UTF-8 strings in Python

I am interfacing with a Java application via Python. I need to be able to construct byte sequences which contain UTF-8 strings. Java uses a modified UTF-8 encoding in DataInputStream.readUTF() which is...

View Article

Character Set Issues when Upgrading from Symfony 2.0.* to Symfony 2.1.*?

I have recently upgraded my staging test site to the latest version of Symfony and updated all the vendors using composer as instructed in the upgrade document that comes with the download.Everything...

View Article

When to use utf8 as a header in py files

Some source files, from downloaded code, have the following header# -*- coding: utf-8 -*-I have an idea what utf-8 encoding is but why would it be needed as a header in a python source file?

View Article


pandas to_csv: ascii can't encode character

I'm trying to read and write a dataframe to a pipe-delimited file. Some of the characters are non-Roman letters (`, ç, ñ, etc.). But it breaks when I try to write out the accents as ASCII.df =...

View Article

dealing with different language character set

we have a basic user search application. one needs to write partial/full user firstname / lastname and the application returns users matching the search. Now we deal with many international users hence...

View Article


Spanish Characters erratically being saved in MongoDB as non utf-8 characters...

Seemingly all of a sudden, we started noticing that non traditional characters like "ñ" "¿" or "é" are being saved as a non utf-8 character "�".We reverted to previous versions of both our front and...

View Article

Image may be NSFW.
Clik here to view.

React Displays Symbols Instead of Accents

I'm facing a persistent issue in my React application where accented characters are being displayed as symbols. This problem is observable even in the developer tools, where the accented characters are...

View Article


How to encode all logged messages as utf-8 in Python

I have a little logger function that returns potentially two handlers to log to a RotatingFileHandler and sys.stdout simultaneously.import os, logging, sysfrom logging.handlers import...

View Article

UTF-16 as sequence of code units in python

I have the string 'abç'which in utf8 is b'ab\xc3\xa7'I want it in utf-16, but not this way :b'ab\xc3\xa7'.decode('utf-8').encode('utf-16-be')which gives meb'\x00a\x00b\x00\xe7'the answer I want is the...

View Article

Invalid UTF-8 in BSON [closed]

Error: Invalid UTF-8 in BSONi am send a data like =payload data{"serviceId": "ASRZPS429","assignedItemIds": [],"name": "Der Müritzsee","description": "Der Müritzsee ist das größte Gewässer in...

View Article
Browsing all 1049 articles
Browse latest View live


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