Most voted "utf-8" questions
UTF-8 is a form of encoding Unicode text, such as UTF-16 and UTF-32, but compatible (to some extent) with ASCII.
Learn more…131 questions
Sort by count of
-
35
votes2
answers31112
viewsWhen to use ANSI and when to use UTF-8?
Is it more advantageous to use an ANSI type instead of a UTF-8 type or vice versa? Is there any gain in performance or storage between types?
-
24
votes1
answer5461
viewsWhich encoding to choose for a database?
When we create a new base (whether it is in Mysql, Postgresql, Oracle, Sqlserver or other) we can choose which one encoding of that bank, for example, UTF-8 or Latin-1. Is there any recommendation…
-
23
votes5
answers2310
viewsWhy are other encodings used besides UTF-8?
If UTF-8 encoding can represent all Unicode characters, why are there still applications that adopt other encoding standards such as ANSI? It would not be easier to abandon all those that do not…
-
20
votes2
answers29759
viewsChange the "collation" and "Character set" of the database, tables and corresponding columns
Some older projects were designed for their immediate purpose and based on this, the databases, tables and columns were prepared in a way limited to the intended scenario. In order to update and…
-
20
votes1
answer14650
viewsWhat are the differences between utf8 and utf8mb4?
When importing my mysql database to a windows server after having created it on a local server (xampp), I could not import into the server the script I exported from the database. So I decided to go…
-
13
votes2
answers54909
viewsEncoding utf-8 allows accents?
If we do # encoding: utf-8 in the first line of a Python program, we can make accents in the whole code?
-
13
votes2
answers2429
viewsHow 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 made a scraping of any site (see code below) and I can’t find the correct encoding. In the META tag of…
-
11
votes6
answers57963
viewsHow to convert UTF-8 characters in PHP
In my web application, I am using a Mysql database that has the table EditableContent. This table has the field content, who’s kind text and has as input format utf8-bin. In the database the…
-
11
votes2
answers930
viewsError "invalid input '.. 'in utf8towcs" with "read.csv"
I have a database on . csv that gathers posts from both Facebook and Twitter. For the reading of the bank in R, the code I have used is bancodedados <- read.csv("nomedobanco.csv", sep=";",…
-
8
votes1
answer577
viewsHow to count touches (letters, spaces and symbols) in PHP?
I made a program that extracts my annotations from my code and creates a file txt to be a little manual. I made a format to make it cooler: +-----------+ | | | ESPECIAIS | | | +-----------+ It takes…
-
7
votes2
answers19648
viewsLine break encoding ( n) in Javascript Alert()
Hello, I need to replace the string </script> transforming it into the string \n. The problem is that unfortunately my PHP project is with charset=ISO-8859-1, while javascript runs with UTF8.…
-
5
votes2
answers710
viewsStatic string being created with wrong Encode
Hello, When creating a string in a Java class (for example: String t = "Ola Java!"), it seems that the compiler is choosing the 'wrong' encounter to interpret the bytes that are in the source and…
-
5
votes1
answer2348
viewsProblem with accentuation when generating PDF with dompdf
I am generating a PDF report using the dompdf API, and the accentuation words are not being displayed correctly. I put the charset='utf-8' tag inside the head, but it does not solve the problem…
-
5
votes1
answer566
viewsBecause my program does not generate CSV in UTF-8 that can be read correctly by Excel, but Notepad generates
I have generated files .CSV in javascript, in UTF-8, but not read with the correct encoding in Microsoft Excel (generating invalid characters instead of accents, as if you were reading ISO 8859-1 or…
-
5
votes1
answer6927
viewsHow to change Default Encoding in Sublime Text 3
In my work, we program in PHP mainly and all the code files were made in ASCII, I’m making some inclusions of pages and I often need to open the existing files and add new things. I do this through…
character-encoding utf-8 sublime-text ascii sublime-text-3asked 6 years, 6 months ago LuisFelipe 100 -
4
votes1
answer83
viewsCharset problem with Postmodern no Common Lisp (SLIME)
I am trying to prepare an environment to study the development of web applications in Common Lisp. As I am without a personal computer at the moment, I am trying to learn from the Lispbox to have a…
-
4
votes3
answers6503
viewsHow to avoid encoding problems when picking up data with Twitter?
I’m taking Twitter data with the package twitteR for r but the tweets are coming with encoding. Someone knows how to get around this problem? library(twitteR) library(stringr) library(ROAuth)…
-
4
votes3
answers5305
viewsConvert string to utf-8
I’m needing to turn a string into UTF-8 encoding. I’m declaring it this way: $nome = utf8_encode($nome); And yet I can’t find the error. The string appears this way: Consolação…
-
4
votes1
answer934
viewsError: Registering ? instead of special character only using browser
I am having a problem at the time of saving the data in my ORACLE database. When using my application to fill in the fields and register a string, the special characters as accents for example are…
-
4
votes1
answer1875
viewsConvert encoding CP850 to UTF8
I have a BD Paradox that returns me the following string after a query in a table of the sector that a certain worker is: Manutenþòo Elútrica. Actually it should be Electrical Maintenance. I need to…
-
4
votes1
answer3125
viewsHow to set up UTF-8 in Android Studio?
This error appeared in Android Studio. Is there any setup to fix? Error:(85, 69) error: unmappable Character for encoding UTF-8
-
4
votes1
answer1133
viewsProblem reading words from database with accent or cedilla
I’m reading my table categories from the database and when I have words with cedilla or accents, they appear in my project with strange characters. For example, in the categories I have a title…
-
4
votes1
answer79
viewsWhat exactly is the "u" modifier for?
What exactly does the modifier u in the regular expressions of preg_ in PHP? It is recommended to use it whenever processing strings that have accentuated characters? $valor = 'ãẽi ouã';…
-
4
votes4
answers7995
viewsAccentuation is unreadable on the page
My page (Header of a table and a modal popup), in accented letters or characters of the Portuguese language, are coming illegible. At the head of the page I have that statement: <head>…
-
4
votes1
answer205
viewsWCF Receive Reply in UTF-8
I’m consuming a Webservice by means of a Console application. I receive an object as a return and in this object I need to read an attribute called ReturnMessage. But the text is disfigured, the…
-
3
votes1
answer1544
viewsCan I use ANSI charset in HTML files?
In order to be able to publish texts daily using some editor like Notepad++ for example, I would like to type the words with an accent and save them in the HTML file. I’ve been reading that the…
-
3
votes1
answer884
viewsError: incompatible Character encodings: UTF-8 and ASCII-8BIT
Incompatible Character encodings: UTF-8 and ASCII-8BIT. {"utf8"=>"✓", "authenticity_token"=>"3cl0R8ghLDvPMGkh0I+LCrzQjmyu1donLE9y58rIT1k=", "post"=>{"title"=>"Somos apaixonados por…
-
3
votes1
answer225
viewsOdd characters
I have a database with that encoding: and I also have HTML with UTF-8 encoding. But for some reason the special characters appear this way: And I can’t figure out why it happens. Can anyone explain…
-
3
votes3
answers1871
viewsFile or character encoding error
On every page of a site I’m developing with coding UTF-8, defined both in the charset of <head> how much in the editor encoding, I’m having problem in the rendering of words that have accents,…
-
3
votes1
answer597
viewsJava String byte array with negative numbers
I’m having trouble figuring out the encoding of a string. The entrance is: São Paulo The original reading of this content is not my job, because the text goes through a Lua wrapper for Java. On my…
-
3
votes2
answers823
viewsHow to Manipulate UTF-8 on the Moon
How to work with a string composed of UTF-8 encoding on the Moon? For example: get a character code in a string by its index; encode character codes, something like string.char(...códigos) or…
-
3
votes1
answer62
viewsLoss of Encode when minimizing javascript in Grails
In my javascript file there is a message with the string "service" for example. When I run the project (run-app) and check the javascript by the browser, the word appears as: "§the service". But…
-
3
votes1
answer519
viewsRead file with non ascii format [à="<U+00E0>"]
I’m reading a file on R called roubobs.rds. is a proprietary R format and I could not open in excel. I can import the data into a variable but, within the records, the texts are not ascii (Unicode?…
-
3
votes2
answers3378
viewsHow to print UTF-8 characters on the c++ console?
The console incorrectly displays accented characters. How to print them correctly (UTF-8)?
-
2
votes1
answer5078
views -
2
votes1
answer213
viewsMy application does not save accented data correctly
I’m developing a web application with Extjs 4 and PHP. I’m having trouble doing the INSERT in the database. For example, I registered the product "tea", but it saves "chu00e1". My entire database is…
-
2
votes1
answer73
viewsProblem with different encodings between databases
I am creating an application that needs to take some data that is in an SQL Server database with iso-8859-1 encoding, and insert into a Mysql database with utf-8 encoding. A few words with accents…
-
2
votes1
answer319
viewsDelphi, Mysql, Adoconnection - Convert database data from latin1 to utf8
I’m having trouble converting the strings coming from the database (Mysql - latin1) to UTF8. The case is that I need to take the data in the database encoding for UTF8 to generate an XML with this…
-
2
votes2
answers6895
viewsHow to define "charset" of a table in SQL Server?
In Mysql to define the charset of a table we can use so: Mysql: create table user_details (...) default character set = utf8; How can I do the same in SQL Server?…
-
2
votes2
answers4697
viewsEclipse UTF8 configuration
Does anyone know how to set the eclipse to utf8? I searched in settings but still could not
-
2
votes1
answer1667
viewsApache ISO-8859-1 + UTF8. Is it possible to use both at the same time?
About Apache with PHP in ISO-8859-1 + UTF8. I have two pages in PHP with different encodings, one in ISO-8859-1 and one in UTF8. Is it possible to use both pages with different encodings at the same…
-
2
votes1
answer394
viewsProblem in UTF-8 characters
I have an error on my site, in the matter of UTF-8 If I use á it goes to link as %E3%83%E2%A1 and printa in input as %e3%83%e2%a1 in hosting. But on localhost it goes as ã¡ and comes back as…
-
2
votes1
answer568
viewsUnicode and UTF-8
What is the difference between Unicode and UTF-8? They are the same encoding or one is derived from the other?
-
2
votes1
answer11955
viewsJSON return with special characters in URL
I’m having a problem with the return of a JSON, I made a query to fetch some images from the database, some URL users registered the images with special characters like -> (ç ã) the texts that…
-
2
votes0
answers146
viewsSoapclient -> Coding problem(Invalid byte 2 of 3-byte UTF-8 Sequence)
I am making a request to a webservice with PHP(Soapclient), and when I have special characters, error/ defrormation occurs. What I’ve already tried: Set the parameter 'encoding'=>'ISO-8859-1' or…
-
2
votes0
answers63
viewsReading a special character like char using locale does not work. How to fix it?
I’ll give a very simple example to explain my doubt: #include <stdio.h> #include <conio.h> #include <locale.h> main(){ setlocale(LC_ALL,"Portuguese"); char a; printf("Insira um…
-
2
votes3
answers4284
viewsProblem with special character "ç" in javascript
I have a switch case to check the month and had to add a hexcode for the month of March not get problem in the character "ç". The March string was like this: Mar o One of the ways to solve the…
-
2
votes0
answers616
viewsHow to solve GIT DIFF encoding problem
for some files git diff presents me instead of accented characters , I don’t really know if the problem is git diff. The GUI I use for git is git Kraken, below is a print of the error.…
-
2
votes2
answers393
viewsCompressing a string to upload into a field of the JSON object
Hello, I am developing a java API, which returns a json object. One of the final json fields is long text, of unknown dimension. Text may or may not contain special characters. I am sending the raw…
-
2
votes1
answer133
viewsPrintstream does not record accents
Could you help me with a question? My code is not accentuating the text file, even passing the encoding. (I am reading it in notepad) Scanner in = new Scanner(System.in); private String texto;…