Questions tagged as 'utf-8'

1
answer

Which encoding to choose for a database?

When we create a new base (regardless of whether it is in MySQL, PostgreSQL, Oracle, SQLServer or other) we can choose which encoding from that database, such as UTF- strong> or Latin-1 . Is there a recommendation or does this make no d...
asked by 12.06.2014 / 20:50
2
answers

Change the collation and character set of the database, tables and corresponding columns

Some older projects were thought of in their immediate purpose and based on this the databases, tables and columns were prepared in a way limited to the intended scenario. In the sense of updating and adapting to a greater scalability of thes...
asked by 28.02.2014 / 22:51
1
answer

How to recognize and change the encoding of Latin characters in R?

Is there any efficient way to recognize the encoding of texts downloaded from the internet? I did a scraping of any site (see code below) and I can not find the correct encoding. In the source code META tag the specification is "iso-8859-1" (...
asked by 01.05.2016 / 19:34
1
answer

What are the differences between utf8 and utf8mb4?

When importing my mysql database into a windows server after I created it on a local server (xampp), I could not import the script I exported from the database into the server. So I decided to copy the table scripts per table, and I noticed that...
asked by 22.04.2016 / 21:14
6
answers

How to convert UTF-8 characters in PHP

In my web application, I'm using a MySQL database that has the EditableContent table. This table has the content field, which is of type text and has the input format utf8-bin . In the database the characters appear...
asked by 19.08.2014 / 02:19
2
answers

Encoding utf-8 allows accents?

If we do # encoding: utf-8 In the first line of a Python program, can we make accents in the whole code?     
asked by 05.06.2015 / 03:01
1
answer

Error "invalid input '..' in utf8towcs" with "read.csv"

I have a .csv database that gathers posts from both Facebook and twitter. For reading the bank in R, the code I have used is bancodedados <- read.csv("nomedobanco.csv", sep=";", encoding="UTF-8") The code loads the database almost to t...
asked by 28.01.2015 / 14:12
2
answers

Linebreak encoding (\ n) in Javascript alert ()

Hello, I need to make a replace in the string </script> by transforming it to the string \n . The problem is that unfortunately my PHP project is with charset=ISO-8859-1 , while javascript runs with UTF8 . Wh...
asked by 17.09.2014 / 19:42
2
answers

Static string being created with wrong encode

Hello, When creating a string in a Java class (for example: String t = "Ola Java!" ), it seems the compiler is choosing the 'wrong' encode to interpret the bytes that are in the source and generate the String (the 'right' encode should...
asked by 30.03.2014 / 19:10
1
answer

How to count touches (letters, spaces and symbols) in PHP?

I made a program that extracts my notes from my code and creates a txt file to be a little manual. I formatted to stay cool: +-----------+ | | | ESPECIAIS | | | +-----------+ It takes the SPECIAL line and formats...
asked by 26.03.2015 / 19:22