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

How to effectively substring UTF-8 encoded String to max length in bytes?

I am looking for a solution to the problem I have faced recently in Java: to limit the filename to 255 bytes in UTF-8.Given that a single UTF-8 character can be represented by multiple bytes, this is...

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


perl debugger and utf8 variable names

I'm having troubles debugging a Perl program where variable names (or hash key) are UTF-8 strings. The program compiles ok (and runs) but whenever I want to debug it, the debugger is quite unhappy with...

View Article

String codification UTF-8 to get 1 Byte

I have a problem when I try to write String in a file. For example, I have this code to convert an Integer value to a 2-byte String but the String codification convert Integer to invisible bytes.I need...

View Article

Image may be NSFW.
Clik here to view.

Kurdish Letters "ێ", "ڵ", "ە" Not Rendering Correctly in PDF Generation

I am facing an issue with PDF generation in my FlutterFlow project, specifically related to Kurdish letters. The characters "ێ" (U+06CE), "ڵ" (U+06B5), and "ە" (U+06D5) are not rendering correctly when...

View Article


Looking for the description of the algorithm to convert UTF8 to UTF16

I have 3 bytes representing an unicode char encoded in utf8. For example I have E2 82 AC (UTF8) that represent the unicode char € (U+20AC). Is their any algorithm to make this conversion? I know their...

View Article

mysqldump exporting data in a bad character set

Yesterday for the first time I exported my Mysql database and I found some very strange characters in the dump such as:INSERT INTO `piwik_archive_blob_2013_01` VALUES...

View Article

How to encode all logged messages as utf-8 in Python

I have a little logger function that returns potentially two handlers to log to a RotatingFileHandler and sys.stdout simultaneously.import os, logging, sysfrom logging.handlers import...

View Article


request.getQueryString() seems to need some encoding

I have some problem with UTF-8. My client (realized in GWT) make a request to my servlet, with some parametres in the URL, as follow:http://localhost:8080/servlet?param=valueWhen in the servlet I...

View Article


How to effectively substring UTF-8 encoded String to a certain amount of used...

I am looking for a solution to the problem I have faced recently in Java: to limit the filename to 255 bytes in UTF-8.Given that a single UTF-8 character can be represented by multiple bytes, this is...

View Article

Export sheet as UTF-8 CSV file (using Excel-VBA)

I would like to export a file I have created in UTF-8 CSV using VBA. From searching message boards, I have found the following code that converts a file to UTF-8 (from this thread):Sub SaveAsUTF8() Dim...

View Article

How to decode Cyrillic text

I tried every possible way to decode text but without success. I found out that it needs to be decoded with windows-1251 but I started getting signs of �. The decoded text should be in Hebrew97897800Р...

View Article

UTF-8 encoding of application.properties attributes in Spring-Boot

In my application.properties I add some custom attributes.custom.mail.property.subject-message=This is a äöüß problemIn this class I have the representation of the custom...

View Article


Spring Boot properties files using UTF-8

Although Java Properties files traditionally supported only ISO-8859-1, JDK 9 and onward supports properties files encoded in UTF-8. And while only JDK 9+ supports UTF-8 with built-in default...

View Article

How to decode base64 string to utf-8

I am using the programSubscribe method in solana blockchain api. after receiving the information, I have to convert the base-64 string, but for some reason I always get an error.Here is the response...

View Article


Convert Unicode to ASCII without errors in Python

My code just scrapes a web page, then converts it to Unicode.html = urllib.urlopen(link).read()html.encode("utf8","ignore")self.response.out.write(html)But I get a UnicodeDecodeError:Traceback (most...

View Article

How do I check if a string is unicode or ascii?

What do I have to do in Python to figure out which encoding a string has?

View Article


How to detect UTF-8 in plain C?

I am looking for a code snippet in plain old C that detects that the given string is in UTF-8 encoding. I know the solution with regex, but for various reasons it would be better to avoid using...

View Article

iconv: illegal input sequence at position

I have a bash script which downloads some files from a url and stores them into a folder named "data1". Since these files are downloaded as .zip then the next step is to unzip them. After that, the...

View Article

encoding as windows-1252 and decoding as UTF-8

recently I've stumbled upon this old python code:for key, value in values.items(): item = value try: if type(item) is str: item = item.encode('windows-1252') item = item.decode('utf8') except...

View Article
Browsing all 1197 articles
Browse latest View live


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