character-encoding Questions

4

Solved

I have trouble transforming a string to lowercase with the tolower() function in C++. With normal strings, it works as expected, however special characters are not converted successfully. How I us...
Depew asked 14/3, 2017 at 16:27

3

Solved

Using the Perl code #!/usr/bin/perl use strict; use warnings; use CGI ":all"; use Encode; my $cgi = new CGI; $cgi->charset('utf-8'); print $cgi->header(-type => 'text/html', -charset...
Insociable asked 17/4, 2012 at 19:12

21

Solved

Here is my code, for line in open('u.item'): # Read each line Whenever I run this code it gives the following error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2892: inv...
Cully asked 31/10, 2013 at 5:55

4

Solved

There's a bug I'm trying to track down here: https://github.com/OscarGodson/EpicEditor/issues/184#issuecomment-8805982 Based on all the information it seems like it's because the browser is defaul...
Erigeron asked 24/9, 2012 at 6:41

5

Solved

Often times when dealing with json and responses you want to encode String to UTF-8 in java. String response = new String(response.data, UTF); // java code For Kotlin, how is this done? I conver...
Coagulase asked 20/6, 2019 at 17:19

5

Solved

It looks like postgres upper/lower function does not handle select characters in Turkish character set. select upper('Aaı'), lower('Aaİ') from mytable; returns : AAı, aaİ instead of : AAI, ...
Carrissa asked 23/10, 2012 at 11:52

3

Solved

I am trying to edit a text file then send it as email body using a python script but im getting the unicode encoding error. After some research i found the solution as using the method .encode('utf...
Tradeswoman asked 24/2, 2019 at 15:3

4

Solved

I'm having a problem with charset encoding in my web application (JSF 1.2, Spring and Tomcat 7), and I've ran out of ideas of what to test to see where it is going wrong. Whenever I submit somethi...
Sharika asked 22/12, 2011 at 21:36

13

Solved

I have an application that deals with clients from all over the world, and, naturally, I want everything going into my databases to be UTF-8 encoded. The main problem for me is that I don't know wh...
Flight asked 2/11, 2011 at 11:27

8

Is it possible to convert UTF8 string in a std::string to std::wstring and vice versa in a platform independent manner? In a Windows application I would use MultiByteToWideChar and WideCharToMultiB...
Southeaster asked 29/9, 2008 at 12:3

5

Solved

A previous LOAD DATA INFILE was run under the assumption that the CSV file is latin1-encoded. During this import the multibyte characters were interpreted as two single character and then encoded u...
Damondamour asked 11/7, 2012 at 15:54

19

Solved

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?
Numeration asked 13/3, 2009 at 17:6

8

Solved

I'm looking to prevent a line break after a hyphen - on a case-by-case basis that is compatible with all browsers. Example: I have this text: 3-3/8" which in HTML is this: 3-3/8” The p...
Embolus asked 7/10, 2011 at 18:46

11

Solved

What is ANSI encoding format? Is it a system default format? In what way does it differ from ASCII?
Lila asked 31/3, 2009 at 16:26

5

Solved

Only today I realized that I was missing this in my PHP scripts: mysql_set_charset('utf8'); All my tables are InnoDB, collation "utf8_unicode_ci", and all my VARCHAR columns are "utf8_unicode_ci...
Wicklund asked 23/2, 2012 at 5:44

2

Solved

Im working on a program to interface with some hardware that is sending data that has been encoded and wrapped to send within a CDATA block in an XML document. the software in the device as far as...
Khano asked 7/11, 2014 at 13:40

5

Such as: str = 'sdf344asfasf天地方益3権sdfsdf' Add () to Chinese and Japanese Characters: strAfterConvert = 'sdfasfasf(天地方益)3(権)sdfsdf'
Snowman asked 6/5, 2015 at 7:9

14

Solved

I was wondering if its possible to have different colored text on the same line in a Windows batch file, for example if it says echo hi world I want "hi" to be one color, and "world" to be anoth...
Puduns asked 2/12, 2010 at 20:44

3

Solved

I have the following code: mb_convert_encoding($string, 'HTML-ENTITIES', 'utf-8'); I need to have an alternative code which does exactly the same but does not use any mb_* functions (the mb exte...
Stuffing asked 15/8, 2012 at 17:22

2

Solved

I have a text file saved as UTF-8 and when I try to read the file it gives me weird characters and not the correct characters (it contains Chinese characters). How can I make it give me the correct...
Papilla asked 13/12, 2012 at 1:19

9

Solved

I'm really confused with the codecs.open function. When I do: file = codecs.open("temp", "w", "utf-8") file.write(codecs.BOM_UTF8) file.close() It gives me the error UnicodeDecodeError: 'asci...
Ailurophobe asked 1/6, 2009 at 9:42

3

Solved

I have a file in Windows-1255 (Hebrew) encoding, and i'd like to be able to access it in Node.js. I tried opening the file with fs.readFile, and it gives me a Buffer that i can't do anything with....
Exocrine asked 29/10, 2014 at 9:21

12

Im trying to create pdf with correct characters, but there are "?" chars. I created a test php file, where Im trying to fing the best solution. If Im open in the browser the html I looks like ok U...
Houck asked 5/5, 2013 at 12:27

7

Solved

I upgraded my httpmime package, and now my strings are not sent or received as UTF-8 MultipartEntityBuilder entity = MultipartEntityBuilder.create(); Charset chars = Charset.forName("UTF-8"); enti...
Saks asked 10/10, 2013 at 9:36

1

Solved

I try to do a FastAPI that trigger file downloading through the StreamingResponse() Class (see FastAPI page). It is actually ok for this part. My problem is that when the file contains accent (e.g ...
Incorporating asked 1/12, 2023 at 9:16

© 2022 - 2025 — McMap. All rights reserved.