utf-8 Questions

2

Solved

I have a string like this String incoming = "<html> <head></head> <body> <p><span style=\"font-family: Arial;\">Ευχαριστώ (eff-kha-ri-STOE) Tι κανείς (tee-KAH-n...
Cuisse asked 11/12, 2019 at 7:19

1

Solved

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 ...
Forestation asked 11/9 at 9:29

3

Solved

I have a little logger function that returns potentially two handlers to log to a RotatingFileHandler and sys.stdout simultaneously. import os, logging, sys from logging.handlers import RotatingFil...
Terce asked 22/9, 2021 at 21:56

3

I am new to Flutter. I am making a Network Request and I am getting the correct response, but the data is Gzipped. I have decompressed the same in Swift, but with Flutter, I am unable to do that. C...
Spanjian asked 17/8, 2019 at 10:24

2

I am writing a golang command line program that accepts user input. This input string has to be converted to UTF-8 and sent to another server for processing. On Linux, the terminal encoding is almo...
Scrimp asked 6/10, 2016 at 1:23

3

Solved

I'm running a Java program from within a Docker container (started with Docker Compose) and it's throwing a bunch of errors caused by UTF-8 characters (as they can't be mapped to the ASCII charset)...
Presbyterian asked 1/7, 2018 at 6:16

11

Solved

I need to convert large UTF-8 strings into ASCII. It should be reversible, and ideally a quick/lightweight algorithm. How can I do this? I need the source code (using loops) or the JavaScript code...
Superphosphate asked 7/5, 2009 at 12:17

2

Solved

I have a string in UTF-8 format but not so sure how to convert this string to it's corresponding character literal. For example I have the string: My string is: 'Entre\xc3\xa9' Example one: This...
Samul asked 4/7, 2014 at 10:5

2

I was curious if I should encode urls with ASCII or UTF-8. I was under the belief that urls cannot have non-ASCII characters, but someone told me they can have UTF-8, and I searched around and coul...
Partite asked 12/3, 2014 at 16:14

7

Solved

I try to read a CSV and echo the content. But the content displays the characters wrong. Mäx Müstermänn -> Mäx Müstermänn Encoding of the CSV file is UTF-8 without BOM (checked with Notepad++...
Gaona asked 16/1, 2012 at 15:23

5

In what 8-bit ASCII-like character set for English is 0x9d meaningful? I'm cleaning up some old data files, and occasionally finding a 0x9d in otherwise-ASCII text. (No, it's not UTF-8.) It's not...
Biles asked 18/8, 2017 at 5:27

5

Solved

I have an english Windows 2003 server with asiatic language support activated. The two only fonts available for the command window (cmd settings) are raster and lucida console. Neither the one nor ...
Noose asked 23/9, 2010 at 16:14

4

I have got a problem with printing out a unicode symbol in the windows console. Here's the java code that prints out the unicode symbol value; System.out.print("\u22A2 "); The problem doesn't...
Cranach asked 4/12, 2013 at 21:27

7

Solved

When your XML input isn't encoded in UTF-8, the Unmarshal function of the xml package seems to require a CharsetReader. Where do you find such a thing ?
Pickax asked 14/5, 2011 at 15:0

5

Solved

What is the correct way of declaring a HTML5 page to be in Hebrew, RTL and utf-8 encoded? I haven't done it in a while, but I remember that in HTML4 it involved 3 or 4 tags and attributes that seem...
Relay asked 11/10, 2012 at 12:28

5

Solved

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 al...
Psf asked 22/2, 2010 at 15:8

15

Solved

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 i...
Mosaic asked 28/8, 2009 at 2:14

2

I have a CSV file which I can read in and at all works fine except for the specific German (and possibly other) characters. I've used chardet to determine that the encoding is Mac Roman import char...
Sansone asked 12/6 at 15:57

3

Solved

I'm having a problem with Spanish characters in a classic asp site. A user is able to submit their name/address in a form on an aspx page. The aspx page then does an ajax post to a classic asp page...
Atronna asked 22/8, 2012 at 23:40

3

I'm trying to read .csv file that contains utf-8 data in some of its columns. The method of reading is by using pandas dataframe. The code is as following: df = pd.read_csv('Cancer_training.csv', ...
Klingensmith asked 26/3, 2015 at 18:16

7

Solved

Current conclusion: The encoding of the converted file is utf-8->utf-8 big->ansi -> utf-8. Reopen the file after each conversion. After observing for a period of time, there is no such err...
Barbi asked 21/4, 2021 at 6:4

10

Solved

I'm trying to search a UTF8-encoded string using preg_match. preg_match('/H/u', "\xC2\xA1Hola!", $a_matches, PREG_OFFSET_CAPTURE); echo $a_matches[0][1]; This should print 1, since &quot...
Phosphorate asked 12/11, 2009 at 20:40

6

Solved

with using python 2.7: >myCity = 'Isparta' >myCity.lower() >'isparta' #-should be- >'ısparta' tried some decoding, (like, myCity.decode("utf-8").lower()) but could not find how to do...
Homeopathy asked 26/9, 2013 at 14:25

7

I need to convert a string to UTF-8 in C#. I've already try many ways but none works as I wanted. I converted my string into a byte array and then to try to write it to an XML file (which encoding ...
Singleton asked 1/6, 2011 at 9:8

8

Solved

I try to read and print the following file: txt.tsv (https://www.sec.gov/files/dera/data/financial-statement-and-notes-data-sets/2017q3_notes.zip) According to the SEC the data set is provided in a...
Depalma asked 2/1, 2018 at 20:36

© 2022 - 2024 — McMap. All rights reserved.