Linked Questions
43 questions linked to/from Working with UTF-8 encoding in Python source
0
votes
1
answer
185
views
Check if a string contains "pålogget" - unicode error
I am playing around with screenscraping with BeautifulSoup on a Norwegian site. I need to check if a string contains the word "Pålogget" (meaning logged on).
if "Pålogget" in status:
I get the ...
3
votes
1
answer
364
views
Problem while retriving tamil character from mysql
I have a table in mysql with tamil characters. Using python i attempted to fetch data from the table, and tried to print the response in json format.
def train_masters_live():
questions = ...
1
vote
0
answers
352
views
How to display Japanese characters from Google Cloud Storage correctly using Java?
Problem Statement:
I have a file containing Japanese characters located in my Google Cloud Storage Bucket. While downloading and printing the contents of the same, I find that the Japanese characters ...
1
vote
3
answers
297
views
How do I declare an encoding for Python source code?
How do I declare an encoding for this code?
I know how to declare encoding in other situations but how would I do it with this?
if used_prefix and cmd=="shoot" and user.name in whitelist:
name = ...
0
votes
2
answers
231
views
reading special characters from web in python
I am scraping an xml webpage for names of people via RE searching, however if the names contain special characters python is not reading them correctly. For Example:
Güngüneş A
comes out as:
G\xc3\...
0
votes
1
answer
210
views
Get unicode error when attempting to save file
I am trying to save a python-docx document in Ubuntu, but I get this error: 'ascii' codec can't encode character '\xed' in position 65: ordinal not in range(128). I tried to apply this solution, but I ...
0
votes
0
answers
199
views
jpype - diactric signs cause UnicodeDecodeError
I've recently started using jpype and it worked nice so far but when I tried to pass a string with polish diacritic sings (ą,ć,ó - stuff like that) as a parameter it throws UnicodeDecodeError.
Even ...
1
vote
1
answer
112
views
How to change the default charset for in MySQL?
I have a python code which adds rows to the MySQL database which runs on the same machine. The code is as follows:
import mysql.connector
config = {
'user': 'root',
'password': 'a$$enjoyer',
'...
0
votes
1
answer
93
views
How do I fix an unusual SyntaxError in the python executable itself when running line_profiler?
Here's a strange one.
First of all: This is NOT a problem with the encoding of a python script file that I have written myself or am importing (see e.g. Working with UTF-8 encoding in Python source ...
0
votes
1
answer
85
views
python encoding issue Raspberry
I'm having a problem using sys.argv[] to pass some values to a Python script.
My Python script is like that:
#Obtención de los valores provenientes del servidor
referencia = sys.argv[1] #referencia ...
2
votes
2
answers
54
views
Error thrown even if a line is commented
I have this line:
#str = u'Harsha: This has unicode character ♭.\n'
This line causes SyntaxError: Non-ASCII character '\xe2' even if it's commented.
If I remove this line the error is gone. Can ...
0
votes
0
answers
33
views
conversion of html code into respective diacritic symbol/alphabet
I have a HTML file containing words like <i>rūpa</i>.
How to convert it into rūpa(rūpa)?
Is there any way to convert it?
Also i get to know that these are the html ...
0
votes
1
answer
31
views
how to solve below pivoting table scenario in python? rows are converting into columns with respect to field names
1st table is my input table present in 1 data frame and 2nd table is my result table. can some one please help how to solve this using python
[1]: https://i.sstatic.net/CJzgW.jpg