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

"Incorrect string value" when trying to insert UTF-8 into MySQL via JDBC?

This is how my connection is set:Connection conn = DriverManager.getConnection(url + dbName +"?useUnicode=true&characterEncoding=utf-8", userName, password);And I'm getting the following error when...

View Article


Black formatter for Python gives a decoding error "not a utf-8 character" -...

NONE of the suggestions to get the file into utf-8 succeeded.In desperation, I switched from black to ruff.py and am proceeding.ruff had no trouble with the directory of files.intelliJ IDEA 2023.2.2...

View Article


Changing PowerShell's default output encoding to UTF-8

By default, when you redirect the output of a command to a file or pipe it into something else in PowerShell, the encoding is UTF-16, which isn't useful. I'm looking to change it to UTF-8.It can be...

View Article

how does python determine encodings under different circumstances? [duplicate]

I have a python script that runs on a windows machine and looks like this:print(f"Current encoding: {sys.stdout.encoding}")print(some_randomized_chars)and I run it in different ways using pycharm.My...

View Article

How do I get UTF-8 to work flawlessly in modern PowerShell on Windows?

I have a C++ program which outputs raw UTF-8 and works flawlessly on Linux, but on Windows shells the output is not as nice. "®" turns into "┬«", "©" turns into "┬⌐", for example.There is also a Python...

View Article


Unexpected result when converting UNICODE to UTF-8 with ICU

I am trying to convert a Hebrew characters into UTF-8 and store them in a std::string.I thought I'd give ICU a try.Here is my minimal example:#include <string>#include...

View Article

UTF8 characters not printed as such in Drupal's HTML

I am trying to debug a nasty utf-8 problem, and do not know where to start.A page contains the word 'categorieën', which should be categorieën. Clearly something is wrong with the UTF-8. This happens...

View Article

Syntax Error: Non-UTF-8 code starting with \xe0 in file "...." but no...

# -*- coding: <utf-8> -*-import reconversiontable = { 'ॐ' : 'oṁ', 'ऀ' : 'ṁ', 'ँ' : 'ṃ', 'ं' : 'ṃ', 'ः' : 'ḥ', 'अ' : 'a', 'आ' : 'ā', 'इ' : 'i', 'ई' : 'ī', 'उ' : 'u', 'ऊ' : 'ū', 'ऋ' : 'r̥', 'ॠ' : '...

View Article


Fixing broken UTF-8 encoding

I am in the process of fixing some bad UTF-8 encoding. I am currently using PHP 5 and MySQL.In my database I have a few instances of bad encodings that print like: îThe database collation is...

View Article


How to detect and fix incorrect character encoding

A upstream service reads a stream of UTF-8 bytes, assumes they are ISO-8859-1, applies ISO-8859-1 to UTF-8 encoding, and sends them to my service, labeled as UTF-8.The upstream service is out of my...

View Article

Image may be NSFW.
Clik here to view.

PutEmail processor can't handle special characters in filename

I have a process where I'm sending a csv file via email. I set filename in UpdateAttribute and put there a polish letter, then I use PutEmail and send this file as an attachment, however on the...

View Article

EOT,ETX in base64 encoded bouncy castle signature

I have a function that uses Bouncy Castle libraries (version bouncy castle: jdk15on-1.57 and java 8) to sign a string and return the base64 value of the signed string (including the content of the...

View Article

Can you provide and example of utl_raw.convert + utl_raw.cast_to_varchar2?

Can somebody please tell me how the utl_raw.convert works with utl_raw.cast_to_varchar2 in Oracle 11g by giving a sample code as i am not able to find an example use case online.ThanksGautam

View Article


GDCM lib: How to convert charset to UTF8 when I read dicom file tags just...

1、When I use 'DCMTK' lib to read dicom files, it can convert charset to UTF8 like this:void test1() { DcmFileFormat format; format.loadFile(R"(C:\test\1.dcm)"); format.convertToUTF8(); // convert...

View Article

How to manipulate/join multiple strings containing UTF-8 characters

My code needs to be compatible with both Python 2.x and 3.x versions. I am getting both string as input to my function, and I need to do some manipulation on those:if len(str1) > 10: str1 =...

View Article


How to convert charset to UTF8 when I read DICOM file tags just like...

When I use the DCMTK lib to read DICOM files, it can convert charset to UTF8 like this:void test1() { DcmFileFormat format; format.loadFile(R"(C:\test\1.dcm)"); format.convertToUTF8(); // convert...

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


Change File Encoding to utf-8 via vim in a script

I just got knocked down after our server has been updated from Debian 4 to 5.We switched to UTF-8 environment and now we have problems getting the text printed correctly on the browser, because all...

View Article

Converting all text files with multiple encodings in a directory into a utf-8...

I am new starter in Python and, in general, in coding. So any help is greatly appreciated.I have more than 3000 text files in a single directory with multiple encodings. And I need to convert them into...

View Article

Combine more than one Unicode characters to form another new character like...

I am trying to create a keyboard in my native language where some characters are formed by combination of other characters. Here is the code snippet that I have tried<Key...

View Article
Browsing all 1060 articles
Browse latest View live


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