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

String.length() doesn't work for "Rolling On the Floor Laughing" : 🤣?

I'm trying to print the first 30 characters of some UTF-8 strings, and notice that Java's String.substring() is returning some funky strings. I've boiled it down to:I'm expecting "🤣" to be String with...

View Article


html character in json file not supported by Basex

I'm trying to parse a json file with Basex107 thanks to the json;parse module.My file presents some values with html character, for example like this in "text" value :"order": 2,"page_id": 27,"text":...

View Article


Image may be NSFW.
Clik here to view.

project in intellij not getting imports from other submodules after...

this is my project structure for module check-services. check-services has submodules check-services-core,<-- check-services-core-domain,<-- check-services-common-domain. All the code is...

View Article

AES Encryption and Decryption not giving proper result

SELECT AES_ENCRYPT('fmale', '2b7e151628aed2a6abf7158809cf4f3c') FROM tmp_categorywise_salary_rpt LIMIT 1; SELECT CAST(AES_DECRYPT('þ*Ë(|¸R°¢8Ç©', '2b7e151628aed2a6abf7158809cf4f3c') as UTF8) FROM...

View Article

Set charset meta tag with JavaScript

There's a bug I'm trying to track down here: https://github.com/OscarGodson/EpicEditor/issues/184#issuecomment-8805982Based on all the information it seems like it's because the browser is defaulting...

View Article


how to convert text from CP437 encoding to UTF8 encoding?

In Windows, the value of the Unicode character ö (Latin small letter o with diaeresis) in the CP437 character set is 148.In Linux, the byte value for ö in the UTF-8 encoding is:-61(Hi Byte) -74(Lo...

View Article

Image may be NSFW.
Clik here to view.

Properly read unicode characters in console / InputStream

I have 2 Windows applications where I want to test reading and writing Unicode characters. I know about other IPC possibilities, but I would like to understand why this particulat case is not...

View Article

Casting each char from span vs MemoryMarshal.Cast

When debugging an operation with UTF8 strings, sometimes I want to see the string representation from a given ReadOnlySpan<byte> so i created a static function to help me achieve it, but, one of...

View Article


One printable latin1 char in valid full utf8 sequence

I'm trying to insert an email address into Postgres using the libpq driver for Golang. The error message isUnable to execute the query. pq: character with byte sequence 0xf0 0x9f 0x9a 0x80 in encoding...

View Article


implementing Python code in Latex UTF-8 error [closed]

I'am trying to use my python code in latex using \usepackage{pythonhighlight} and \usepackage[utf8]{inputenc} but i am getting this error ! LaTeX Error: Invalid UTF-8 byte sequence (�\expandafter), my...

View Article

How would one render a QR code in the logs of a GitHub workflow?

I need to show a QR code in a terminal (output/logs) this needs to use ASCII or UTF-8 characters. My team makes use of the GitHub app to collaborate, and a QR code in the logs of the jobs will help us...

View Article

How to use UTF-8 character in Netbeans

I am using Netbeans6.9.1 IDE and wants to show the Chinese characters in the output console using java.I copied the Chinese charater from a web page and copied between the "". but its not supported....

View Article

problem with python and telebot in persian language for sending message

A text in Persian language is stored in a txt file.I want to send its contents using Python and Telebot in Telegram, but the letters are messed up in Telegram.The file storage format is UTF-8.I changed...

View Article


Pickle encoding utf-8 issue

I'm trying to pickle a pandas dataframe to my local directory so I can work on it in another jupyter notebook. The write appears to go successful at first but when trying to read it in a new jupyter...

View Article

Force StandardOutputEncoding to UTF8

I'm looking to parse UTF8 characters from the standard output stream of another application in my C# project. Using the default approach, characters outside of the ANSI spectrum are corrupted when read...

View Article


Encode a string in UTF-8

I want to encode a string into UTF8 in PowerShell.This is what I tried:$consumer_key ="xvz1evFS4wEEPTGEFPHBog"$enc_consumer_key = System.Text.UTF8Encoding($consumer_key)But I get an error:...

View Article

PHP - How to decode or parse emoji from unicode string? [duplicate]

In my PHP code, I receive user's emoji as this string "1f49c" from frontend app.It should be as simple as echo "\u{1f49c}";, but my data is only this string: "1f49c"How to parse it to 💜?I've...

View Article


How can I make System.Environment.GetEnvironmentVariable("USERNAME") UTF-8...

In my C# Windows application, I am fetching the username from System.Environment.GetEnvironmentVariable("USERNAME") whereas my system account is non ascii, so while I debug I was getting username as...

View Article

Replacing carridge returns or line feeds in JSON

i'm running into an issue with JSON, which i admittedly know little about.i have text that is formatted in UTF-8 with line feeds and/or carriage returns that i'm packaging up in FME workbench to send...

View Article

Replacing carriage returns (CR) or line feeds (LF) in JSON

I'm running into an issue with JSON, which I admittedly know little about:I have UTF-8 encoded text that is formatted with line feeds and/or carriage returns that I'm packaging up in FME workbench to...

View Article
Browsing all 1060 articles
Browse latest View live


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