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

How can char[] represent a UTF-8 string?

In C11, a new string literal was added with the prefix u8. This represents an array of chars with the text encoded as UTF-8. How is this even possible? Isn't a normal char signed? Meaning it has one...

View Article


'utf-8' codec can't decode byte 0xa0 in position 4276: invalid start byte

I try to read and print the following file: txt.tsv (https://www.sec.gov/files/dera/data/financial-statement-and-notes-data-sets/2017q3_notes.zip)According to the SEC the data set is provided in a...

View Article


How to save .txt as Unicode or UTF-8 in VBA

I want that all my files be saved in unicode or utf-8 format and not ANSI.Here is the code:Sub cvelle()Dim iRow As LongDim iFile As IntegerDim sPath As StringDim sFile As StringFor iRow = 1 To...

View Article

Message gets displayed as '?' in VS code

VS code does not displays my messages in Tamil, Russian etc. other languages, How can I make it to support all the languages I wish to display?Suppose I want to displayPress 2 for Hindi. How can I do...

View Article

How to make python 3 print() utf8

How can I make python 3 (3.1) print("Some text") to stdout in UTF-8, or how to output raw bytes?Test.pyTestText = "Test - āĀēĒčČ..šŠūŪžŽ" # this is UTF-8TestText2 = b"Test2 -...

View Article


Problems decoding when exporting dbf using r

I exported a database to dbf but, when I read the database in Excel and in the application that reads the dbf, the characters are unconfigured. For example, "N├úo", instead of "Não".To export, I used...

View Article

Character-encoding problem with string literal in source code (utf8 no bom)

$logstring = Invoke-Command -ComputerName $filesServer -ScriptBlock { param( $logstring, $grp ) $Klassenbuchordner = "KB "+ $grp.Gruppe $Gruppenordner = $grp.Gruppe $share = $grp.Gruppe $path =...

View Article

Different character using vim, cat and pbcopy

I have a file sample containing the following string when reading it with vim (in german language, converted from html using munpack):benützt daÿsif I cat that file, I get the following (correct)...

View Article


Image may be NSFW.
Clik here to view.

Spring MVC and UTF-8: How to work with Swedish special characters?

I try to find the word with special Swedish characters "bäck" in my database,I have a jsp-page:<%@ page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %> ...<form name="mainform"...

View Article


Does c# use UTF-8 or UTF-16 for strings? [duplicate]

To be more precise, the latest version of c# (c# 12 (.NET 8.0)), does it use UTF-8 or UTF-16 for strings?I am confused...

View Article

When I cmake a project in Ubuntu, I got an error following: cmake -E env...

I don't know what that means.I try to cmake the mitsuba3 project from github. When I deleted the '-Xutf8', it rasied error 'permission denied'. When I try to use root to compile it, it also raised...

View Article

Image may be NSFW.
Clik here to view.

pdfkit support for full utf-8 characters and special chars (arabic, korean,...

For our application we have to support a wide range of utf-8 characters, like for arabic, korean or chinese language. Unfortunately, it does not work.You can even reproduce it in the live demo of the...

View Article

How to use UTF-8 in resource properties with ResourceBundle

I need to use UTF-8 in my resource properties using Java's ResourceBundle. When I enter the text directly into the properties file, it displays as mojibake.My app runs on Google App Engine.Can anyone...

View Article


Trying to print bits of of UTf-8 character (emoji '👍')

I am trying to print bits of of UTf-8 character. In that case an emoji.According to the the following video: https://www.youtube.com/watch?v=ut74oHojxqothe following code script.py (both from the...

View Article

The content type application/xml;charset=utf-8 of the response message does...

I know this question has been asked a few times before, but the solutions given either don't work for me or I'm too ignorant to fully understand how to implement the solution.So, the website I am...

View Article


Export txt or csv table which includes UTF coded greek characters

I am writing a table in R which contains Greek characters and am not able to export the table in CSV or txt file (I want to call the table later in a Latex file). #example table:parm1 <- 2parm2...

View Article

How to decode value in redis cli or shell script

I've written redis-cli bash script to process all key and value for bulk retrieval but values are not printing as expected. When I give my key in redis-cli its printing with all special characters:My...

View Article


Questions about encoding between client-server-db

I'm a little confused about encoding.The basic principle is,When you create a byte array to send data to the network, you create it by referring to the character set and sending it,and the receiver...

View Article

Bulk Insert UTF8 file with Dagger field separator

I'm struggling with trying to set up BULK INSERT options for SQL Server for a UTF8 text file with fields containing both Polish and Czech/Slovak characters and a custom field separator (‡).Snippet of...

View Article

How to best configure PHP to handle a UTF-8 website [duplicate]

What extensions would you recommend and how should php be best configured to create a website that uses utf-8 encoding for everything. eg...Page output is utf-8forms submit data encoded in...

View Article
Browsing all 1135 articles
Browse latest View live