Questions tagged as 'unicode'

1
answer

What is the best collation for my MySQL Database?

Greetings! I am working in a database which has planned to answer many queries, the case is that I want to know what would be the advantages of using utf8_spanish2_ci, utf16_spanish2_ci and utf32_spanish2_ci? They wanted me to explain thei...
asked by 10.04.2017 / 22:55
1
answer

Is there any incompatibility between the utf8 / 16 / 32_spanish_ci?

I find myself creating a database, but I am faced with a doubt that is the differences but I do not know if it affects the databases. I always use utf8_spanish_ci to create the database regarding the collate of it. But I noticed...
asked by 10.11.2016 / 13:04
1
answer

How to convert a csv (unicode) file to csv (utf-8) in python 3.6.5?

I download a CSV (unicode) file from a website, the fields are separated by tabulation and in double quotation marks and the line break does not do it at the end of each row of how it looks in the CSV, example of how it is see the CSV informatio...
asked by 11.09.2018 / 08:04
1
answer

Correctly display characters encoded in style \ xe9 [duplicated]

I have a database in .csv format that I have exported to my MySQL database and whose records I want to visualize in a web using PHP. The problem is that some of the characters are encoded in the .csv file, for example \xe9 that corre...
asked by 29.12.2017 / 01:31
1
answer

Problems retrieving data that contains unicode in mysql

Dear friends, they passed me a site where I have to repair the search function and I run into the following problem: There is a column in the bd, for this example 'name', which stores the data in the following way: {"is": "Balloon Puc \ u00f...
asked by 07.11.2018 / 15:16
1
answer

"UnicodeDecodeError" when starting the python shell on the Windows cmd

Good day, I have a problem when initializing the python shell in the Windows cmd, less than a day ago it worked perfectly, but suddenly, when I wanted to start the Python shell inside the Windows cmd with the command "python" ", it shows me the...
asked by 07.11.2018 / 17:59
1
answer

convert U + XXXX to hexadecimal utf8

I would like to know how to convert a string like this: U + 1F601 to this format: \ xF0 \ x9F \ x98 \ x81 We can see an example on this page: link There you specify your UNICODE code and its value in bytes. I use python 2.7 Thi...
asked by 25.07.2018 / 12:19
1
answer

Error with pd.DataFrame.replace, can not convert unicode string to float

I am trying to multiply a data frame by reference so I am using a dictionary to multiply it. When I try to fill my dictionary with the values in Excel rows I can not convert the values to float since they are unicode. I am using Python 2.7.10, c...
asked by 01.07.2018 / 00:50
1
answer

wchar_t does not print letters with accents

I have the following code: int wordsAnalyzer(char* dir){ FILE* doc = fopen(dir,"r"); wchar_t myChar; int count = 0; while((myChar = fgetwc(doc)) != EOF){ putwchar(myChar); } getchar(); return count; } A...
asked by 14.05.2017 / 11:04
2
answers

Remove special characters to a string in PHP?

How about? Veran I have a little problem with some strings that are full of a unicode character. My string is this: $variable = "c\u0000o\u0000d\u0000e"; Which has this unicode character: \ u0000 I would like to know how I can remove all...
asked by 09.04.2018 / 07:05