Most voted "character-encoding" questions
Character encoding or Character encoding refers to the way characters are represented as a series of bytes.
Learn more…232 questions
Sort by count of
-
117
votes3
answers57155
viewsCharset iso-8859-1 and utf-8 compatibilization problems
The 1st Image I use the charset=iso-8859-1 In this 2nd image I use utf8 I have a news system where you can paste html or text from other pages. On the page where the news are presented I use the…
-
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?
-
26
votes2
answers2693
viewsWhat is the difference between charset and collation in a database?
Every time I create a database, I always come across these definitions and I don’t really know the difference. I understand what it is charset, but not collation.
-
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…
-
22
votes2
answers19395
viewsWhat’s the difference between varchar and nvarchar?
What’s the difference between using data types varchar and nvarchar? nvarchar exists in every SQL database? Is there any significant difference in performance between the two? There is a criterion…
database sql-server string typing character-encodingasked 7 years, 5 months ago UzumakiArtanis 9,534 -
21
votes1
answer929
viewsWhat is the difference between code page, Plane, code point, octet and other terms about characters?
Considering the use of characters that we use to produce texts or other forms of visual representation we have some terms that we need to learn to use the various forms correctly. Has several…
-
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…
-
19
votes2
answers21759
viewsWhat are the main differences between Unicode, UTF, ASCII, ANSI?
What are the main differences between "encodings" Unicode, UTF, ASCII, ANSI? They are all really encodings or some are just "sub-categories" of others? I don’t want to know all the details of each,…
-
16
votes1
answer1089
viewsWhy is the "@" symbol being translated to "¿" when sent via SMS from an Android 2.3 device?
I’m developing an application for Android that sends commands to a remote device via SMS. The commands used are all common text messages, and some of them are started with the prefix A@@. To test…
-
15
votes3
answers26168
viewsWhat is meta charset in HTML?
Can someone explain me this HTML5 code? <meta charset="utf-8"> What is this standard used for and why?
-
13
votes3
answers3756
viewsProblem using subst in text with PHP
When using substr in a variable with text, it is returning a special character " "someone could help me? I’m using the following code: $excerpt = get_the_content(); $excerpt =…
-
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…
-
12
votes3
answers10354
viewsInsert with accents in Oracle
When I make one INSERT for example: INSERT INTO TESTE (NOME) VALUES ('INSCRIÇÃO ESTADUAL'); You’re saving it on the table this way: REGISTER THE STATE And on the screen displays "INSCRIÃÃO…
-
10
votes5
answers11633
viewsHow to do a LIKE ignoring accentuation?
I need to make queries in a database of registered users. However, I need this survey to be done by the name of the user, through the LIKE, and this should ignore the encoding UTF-8 present in the…
-
9
votes6
answers3652
viewsHow to detect page encoding with PHP?
I wanted to create a function that saved the data in the database encoding correct (my bank is UTF-8) according to the encoding detected. Is there a native PHP function to do this? Is there any…
-
8
votes1
answer11054
viewsStreamwriter Special Characters with Encoding.ASCII C#
I am writing in a file via Streamwriter using the encoding Encoding.ASCII. A situation has appeared where I need to write the letter "Ç". Only if I try to do that, the file leaves the character "?".…
-
8
votes3
answers464
viewsIDE - Divergence between Ides relative to tab [to Enter]
On grounds of hadware, I am the only one in my team that is using Sublime Text 3, the others are using Eclipse Luna or Mars, until there is nothing more. However since the exchange I’ve had some…
-
7
votes3
answers15042
viewsWhat is the difference between BOM and BOM encoding files?
A long time ago I faced problems with formatting files between ISO-*, UTF-8, ANSII and others, I started researching ways to solve these problems, I found several different ways, both using tools…
character-encodingasked 10 years, 7 months ago Erlon Charles 5,352 -
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.…
-
6
votes1
answer925
viewsSubtituition of special characters by ASCII codes
I’m getting a site buildable in charset ISO and when I step to UTF-8 the special characters appear on the screen with that diamond and a question mark, then in addition to switching from charset I…
-
6
votes1
answer640
viewsHow do the <p:editor> of the first faces escape the special characters typed by the user before saving them?
I am using the primefaces component. My problem is that it is recording the accents that the user type into the text without doing the proper Escaping HTML. There’s a way to change this so he knows…
-
6
votes1
answer424
viewsEncoding problem in project import to Android Studio
I imported a project via SVN in Android Studio. Previously the project was in Eclipse and who took care of the project ended up committing files like .classpath. From then on I started having an…
-
6
votes1
answer391
viewsDisplay of Latin characters in a String
How do I display Latin characters as content from a web page? This content to be displayed is written in java, which should code it correctly and return a Stringwith the values to be written to the…
-
6
votes2
answers901
viewsExtract file . ZIP with accent on name
I’m using the lib System.IO.Compression.ZipFile to unzip files .zip and came across a big problem while trying to extract files that have accents in the name. If I try to extract with encoding…
-
6
votes1
answer56
viewsWhen to choose between using a string wide or not?
When using a string wide (std::wstring) or a string normal (std::string)?
-
6
votes3
answers362
viewsCharset statement in file . css
Sometimes I come across some examples of archive .css with the declaration of charset right in the first line: @charset "utf-8"; Even my code editor (Dreamweaver CC 2015), when I create a new CSS…
-
5
votes2
answers785
viewsE-mail UTF-8 via ASP with CDONT
I am trying to send a form to an email using CDONT, but the charset is coming incorrectly and is not showing the accented characters correctly. <% Response.ContentType = "text/html"…
-
5
votes1
answer81
viewsHow to transfer a file with corrupted name?
A client of mine is having a problem to upload file on my system, and from what I could notice it is his file that is with corrupted name (it is relatively common, on Windows systems, the accented…
-
5
votes2
answers3274
viewsC# - XML return from Webservice with encoding error (ISO-8859-1)
I have a Windows Forms application that is consuming a Webservice that returns an xml (string) enconding with ISO-8859-1. However, the answer comes with question characters (?) instead of accents.…
-
5
votes1
answer8292
viewsHow to discover the original encoding of a filename (or any string)?
I have a number of files that seem to have been generated on different operating systems, because the character encoding of their names seems to vary between them. There are names whose accents…
character-encodingasked 8 years, 11 months ago bfavaretto 64,705 -
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, 7 months ago LuisFelipe 100 -
5
votes1
answer1828
viewsHow to present the correct accent on the return of cmd?
Considering a method to list files from a folder using ProcessBuilder I have the incorrect return of the accented words. Code import java.io.BufferedReader; import java.io.IOException; import…
-
4
votes1
answer2848
viewsHow to Convert UTF String to ANSI and Create ANSI Text File on an SSD?
I wrote an Android application using Java, so that users answer questions, which are then saved in a file. The problem is that this file is saved in UTF8. The end user will open this file on IBM…
java android character-encoding file-systemasked 10 years, 10 months ago Please_Dont_Bully_Me_SO_Lords 516 -
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
votes1
answer5195
viewsSublime Text 2 - Encoding UTF-8 does not work
I’m having trouble editing the code, I can’t modify Encoding to UTF-8 according to what’s in my code right below. I select the option in Sublime "File> Reopen with Encoding > UTF-8" but it…
-
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
votes4
answers3597
viewsjson returns null with special characters
Today I came across this mistake: When trying to encode an array for json, some values return null. I arrived at the solution before using the function json_encode() pass all strings to UTF-8 with…
-
4
votes1
answer151
viewsQt String Encoding Problem
I’m having a problem encoding strings on Qt. By showing something in a QMessageBox or give a drawText in a paintEvent, my strings come out badly formatted, as if they were not in the correct…
-
4
votes1
answer900
viewsChrome error decoding accents posted via HTTP POST
I have a form that makes an HTTP POST request to update the BD. During the request I noticed that the following message appeared for a field filled with accent in Chrome Dev Tool. For example, the…
-
4
votes2
answers1216
viewsCompare two strings with C accentuation
I have the following problem, I need to compare two strings ignoring the accent, for example: Étnico | Brasil Using a normal comparison function it is returned that "Ethnic" comes before "Brazil" in…
-
4
votes1
answer442
viewsHow to use acute accent inside a string in a bash script?
I use the script below to download Audios from google translator to use in a personal program that narrates codes and quantities of my stock. The problem is that the high-pitched "oh" accent of the…
-
4
votes2
answers3669
viewsDecoding of file in Python
I have a file that is completely written like this after my Crawler also written in Python has saved the data in it: b'N\xc3\xa3o n\xc3\xa3o n\xc3\xa3o, n\xc3\xb3s iremos sim!' I wonder if there is…
-
4
votes1
answer64
viewsHow to format the day of the week to not show symbol in PHP
How to exchange the symbol � appearing on Tuesday by a C? My code below: <?php setlocale(LC_ALL,"pt_BR", "pt_BR.utf-8", "portuguese" ); date_default_timezone_set('America/Sao_Paulo'); echo…
-
4
votes1
answer1058
viewsAccent problem while consuming Webservice on Windows Server
Correction I have an accentuation problem when consuming Webservice on Windows Server. I have apache-Tomcat-7.0.63 installed on windows server 2008, and as SGB, Postgres 9.4 and with Java 8. The…
-
4
votes1
answer265
viewsEncoding Eclipse -> Intellij
I imported a project into Intellij that was created in the eclipse. The project is pretty big. I’m having a problem with encoding, in the eclipse is as Default o Cp1252 And Intellij is into UTF-8…