Questions tagged as 'unicode'

1
answer

Can I use ANSI charset in HTML files?

In order to be able to publish texts daily using any editor like notepad ++, for example, I would type the words with an accent and save them in the HTML file. I have been reading that UTF-8 it is necessary to put a code for the accents. For e...
asked by 16.06.2014 / 17:11
1
answer

Problem unpacking file

I have a zip that, inside it there are several files to be unzipped. So long, I'm using the following method to decipher the same:? with closing(z), zipfile.ZipFile(io.BytesIO(z.content)) as myzip: myzip.extractall(local_path)...
asked by 16.03.2017 / 21:46
1
answer

Doubt: how to fix the UnicodeEncodeError in Python?

Since I changed the machine, I have the following problem with the Python interpreter: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 17: ordinal not in range(128) All strings you send and receive are transfo...
asked by 09.06.2015 / 15:02
2
answers

Is there any problem in using Unicode characters for identifiers in code?

Today, it is common for compilers of programming languages to allow the code file of their programs to accept code with Unicode characters. This is useful, especially for those who use Portuguese and other languages that run away from ASCII t...
asked by 21.05.2014 / 16:04
1
answer

unicode error python when import fields with accented text

I have an error when I execute the command below, it generates the text file correctly when I import database texts without stress, but when there is some accent appears the error:    File "C: /Users/ti/Desktop/report.py", line 17, in doQuery...
asked by 06.07.2017 / 23:58
1
answer

What kind of recursively remove accented characters from file names

I tried other scripts I found on the internet (* the ones I found), but without success. So I want to know from some of you how to do this automated / recursive task. Shell Script Retrieved from: link set meta-flag on set output-meta on...
asked by 23.08.2018 / 23:15
1
answer

What calculation to convert a 'CodePoint' to UTF-16?

I have a 32-bit integer representing a unicode character and would like to convert this single character to its utf-16 representation, that is, one or more 16-bit integers.     
asked by 27.06.2017 / 14:52
1
answer

Encodings do not work in a file with OpenCV in Python 3

I followed the face detection tutorial using OpenCV and wrote in Python 3. In this file, print is not used. I already know that Python 3 is international, is UTF-8 compatible and does not need encodings. But even so, no accent appeared on...
asked by 18.03.2018 / 15:51
2
answers

how to render unicode correctly

Good afternoon everyone! Galera, following, I have the following code "& # x25Bc" it has to render in the browser an up arrow ... however, when launching in the "content" of before, it renders exactly those characters and not the arrow symbol .....
asked by 07.12.2018 / 18:34
1
answer

How to show accented characters in Visual Studio 2017 using C ++?

Good afternoon, I asked this question a long time ago, but it was bad so I deleted it and I'm redoing it in more detail. My problem is this: When I use accent in Visual Studio it returns strange characters. This only happens when I compile...
asked by 15.10.2017 / 20:54