python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Remove letters when using UTF-8 in python
I face a weird problem when I use UTF-8 and the Persian language in python.
When I want concat two strings with half-space ('\u200c') the last letter of the second word has been removed.
Here is an ex...
Mahdi Akhi
Votes: 0
Answers: 0
Is it possible for str.encode(encoding='utf-8', errors='strict') to raise UnicodeError?
I am writing some code that needs to work with both Py2.7 and Py3.7+.
I need to write text to a file using UTF-8 encoding. My code looks like this:
import six
...
content = ...
if isinstance(content,...
kevinarpe
Votes: 0
Answers: 1
Reading and Writing Devanagri Hindi characters in text file
Having trouble reading and writing Hindi Devanagari characters in text files using Python.
Reading: Python is unable to read Devanagari characters in my text file when following code is implemented.
...
AT3140
Votes: 0
Answers: 1
What is the Difference between unicodedata.digit () and unicodedata.decimal()? They both seems similar to me
I was reading the docs to understand the unicodedata but I am confused between the unicodedata.digit() and unicodedata.decimal().
They are both similar to me and even return the same results. Can you ...
AlixaProDev
Votes: 0
Answers: 0