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

Why do I receive a "polars.exceptions.InvalidOperationError: file encoding is...

The code in the accepted answer of this question is as follows:import polars as pldf1 = pl.DataFrame({"a": [1, 2], "b": [3 ,4]})df2 = pl.DataFrame({"a": [5, 6], "b": [7 ,8]})with open("out.csv",...

View Article


svn status powershell non-ascii characters problem

I have a weird thing going on in my powershell-script using svn commands. Following is an Powershell-Example Script: $svnOutput = svn status Write-Host "Output when saved in a variable" $svnOutput...

View Article


Listings in Latex with UTF-8 (or at least german umlauts)

Trying to include a source-file into my latex document using the listings package, i got problems with german umlauts inside of the comments in the...

View Article

Python insert UTF8 string into SQLite

I know there are similar questions, but the answers are distinct and kind of confusing.I have this string:titulo = "Así Habló Zaratustra (Cómic)"When I try to insert it to the SQLite database I get the...

View Article

Issues printing emojis and symbols on Windows Terminal using Java

I'm using JDK 21, that has the file.encoding automatically to UTF-8 but, even adding it explicitly as a command argument, nothing changes. I checked the property in the code and it is indeed UTF-8.I've...

View Article


What is the use of the lang attribute in HTML if we have defined the charset...

Why is html lang="en" required if we are defining meta charset="utf-8"? We have defined a character set, so what's the use of defining a language?What I understand from UTF-8 is that it contains...

View Article

Samba share encoding with UTF-8 issue

I use samba to share folder between Ubuntu and Windows. And here comes the problem that I want to use UTF-8 encoding in both Linux and Windows. However, when I forced to encode file with UTF-8 in...

View Article

Fixing ‘ascii’ codec can’t encode ‘\u2014’ error in OpenAI API during vector...

I am working on a RAG-related project and attempted to store loaded pages into a vector store for building a web-referenced RAG pipeline. However, I encountered the following error during the embedding...

View Article


intellij idea 16 add -Dfile.encoding=utf-8 in the idea64.exe.vmoptions and...

I noticed that it didn't work when adding -Dfile.encoding=utf-8 in the idea64.exe.vmoptions and idea.exe.vmoptions. However, when I add it to the setting of the VM option, it works well. I don't like...

View Article


cp1252 to utf-8 using iconv for all files in a folder

I need to convert cp1252 files to UTF-8 with iconv and that worked fine for one file but when I try multiple files it's not working.i try this find . -type f -name '*.csv' -print -exec iconv -f cp1252...

View Article

Difficulty using the ICU library convert UTF8 characters in C++

I am trying to use the following code snippet from this StackOverflow answer:A: How to convert an instance of std::string to lower case#include <unicode/unistr.h>#include...

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

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


UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 460:...

I've got a problem with the command loaddata of my Django app.When I run this command, this UnicodeDecodeError appears because of the "é" that are in my database table.i've try with many type of...

View Article

How to set charset="utf-8" in the javascript file itself

I am trying to set charset="utf-8" inside the javascript file itself, not in the script tag,I know that I can do this:<script type="text/javascript" charset="UTF-8"...

View Article


How can I detect a malformed UTF-8 string in PHP?

The iconv function sometimes gives me an error:Notice:iconv() [function.iconv]:Detected an incomplete multibyte character in input string in [...]Is there a way to detect that there are illegal...

View Article

Make git diff show UTF8 encoded characters properly

I have a file with Swedish characters in it (åäö) encoded with UTF8.If I cat the file it displays fine, but if I do git diff the special characters are printed, for example, as <F6>.Example git...

View Article


Convert file csv with UTF-8 format to ANSI in C#

I have .CSV files with UTF-8 encoding, and I want to convert these files to ANSI format, but my code doesn't work!static void Main(){ Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);...

View Article

What is the maximum number of bytes for a UTF-8 encoded character?

What is the maximum number of bytes for a single UTF-8 encoded character?I'll be encrypting the bytes of a String encoded in UTF-8 and therefore need to be able to work out the maximum number of bytes...

View Article

Save text file UTF-8 encoded with VBA

how can I write UTF-8 encoded strings to a textfile from vba, likeDim fnum As Integerfnum = FreeFileOpen "myfile.txt" For Output As fnumPrint #fnum, "special characters: äöüß"'latin-1 or something by...

View Article
Browsing all 1045 articles
Browse latest View live


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