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

Size in bytes that a json doc occupied stored

When storing a JSON in Elastic Search, how much space does it take?E.g if for example I store a JSON that has 1000 chars total (including whitespace/formatting) how many bytes does it take to be stored...

View Article


How to check if letter is upper or lower in PHP?

I have texts in UTF-8 with diacritic characters also, and would like to check if first letter of this text is upper case or lower case. How to do this?

View Article


How to find out if string has already been URL encoded?

How could I check if string has already been encoded? For example, if I encode TEST==, I get TEST%3D%3D. If I again encode last string, I get TEST%253D%253D, I would have to know before doing that if...

View Article

Determine NLS_LANG on linux

How do I determine the NLS_LANG setting for my Oracle Client on linux?I haven't set the NLS_LANG explicitly.Is it necessary to set and export the variable NLS_LANG=AMERICAN_AMERICA.AL32UTF8 for...

View Article

Getting the actual length of a UTF-8 encoded std::string?

My std::string is UTF-8 encoded so obviously, str.length() returns the wrong result.I found this information but I'm not sure how I can use it to do this:The following byte sequences areused to...

View Article


System.AnsiToUtf8 does not convert

I would like to convert some Strings into their UTF-8 representation. For that task i tried the function System.AnsiToUtf8 that is decladed as follows:function AnsiToUtf8(const S: string):...

View Article

Incorrect string value: '\xF0\x9F\x8E\xB6\xF0\x9F...' MySQL

I am trying to store a tweet in my MYSQL table. The tweet is:quiero que me escuches, no te burles no te rias, anoche tuve un sueño que te fuiste de mi vida 🎶🎶The final two characters are both 'MULTIPLE...

View Article

UTF-8 coding question (what is the last unicode character)

we are opening up our application to allow support for multiple languages. one of the problems we have encountered along the way is a feature we provide our customers. Imagine for a moment the user is...

View Article


Incorrect string encoding in kotlin application main method arguments

I'm creating a small music player with kotlin and compose for desktop.so it happens that i have a song with some weird encoding: "08. ±ªþ³§ (feat. Yonaka).mp3"compose.desktop { application { mainClass...

View Article


Fix UTF-8 Character Display in PHP *After* Upgrade from MySQL 5.7 to MySQL 8

We upgraded our RDS database on AWS from MySQL 5.7 to MySQL 8.The server Character Set and Server Connection are set to UTF-8 Unicode. That's utf8mb4 and utf8mb4_unicode_ci, respectively.But the actual...

View Article

How do I properly receive UTF-8 characters in JBoss 7?

I’m using JBoss 7.1.3. Currently, when I submit a request to the server with a special character, for exampleCaféit is received by the server asCaféThe only piece of advice I found online for...

View Article

Weird UTF-8 MAMP issue

in further text, I'll refer to some characters as correct UTF characters, that's utf-8 encoded character in it's ok form (á) and incorrect UTF characters, that's the same, but messed up utf-8 character...

View Article

I want to do search string in textfile(utf-8) , if string is found then i...

Example:Serach string EVP_PKEY_get_bn_paramCode in text filestatic std::vector<uint8_t> get_rsa_modulus(EVP_PKEY &pkey) { std::unique_ptr<RSA, decltype(&RSA_free)> rsa(...

View Article


Encoding issue with PHP while writing in a .csv file

I'm working with a php array which contains some values parsed from a previous scraping process (using Simple HTML DOM Parser). I can normally print / echo the values of this array, which contains...

View Article

Convert to UTF-8-BOM memory optimiztion

Is there a better way to write this code section in Python with an emphasis on memory usage?convert csv from UTF-8 to UTF-8-BOM ( work better with Hebrew )def convert_csv_to_utf8_bom(input_file_path,...

View Article


Why does Go interpret byte as Unicode code point when appending to string?

I need to create a string consisting of a single byte corresponding to an integer of at most 255. It is acceptable that the string is not valid Unicode.Code:import ("fmt""strings")func main() { n :=...

View Article

python regular expression with utf8 issue

I got a file which includes many lines of plain utf-8 text. Such as below, by the by, it's Chinese.PROCESS:类型:关爱积分[NOTIFY] 交易号:2012022900000109 订单号:W12022910079166 交易金额:0.01元交易状态:true 2012-2-29...

View Article


Why does File::Slurp get UTF8 characters wrong when I use open ':std',...

I have a Perl 5.30.0 program on Ubuntu where the combination of File::Slurp and open ':std', ':encoding(UTF-8)' results in UTF8 not getting read correctly:use strict;use warnings;use open ':std',...

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

check if string is encoded in UTF-8

I want to check the encoding in a string with C#.Is there any possible way?I was trying with StreamReader but I don't have path.foreach (string um in userMasterList){ counter++; TextInfo textInfo = new...

View Article
Browsing all 1053 articles
Browse latest View live


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