Most voted "accentuation" questions
Accentuation refers to the combination of diacritical signs with letters of the alphabet. Use this tag on questions about the correct handling of accented characters in a computer program. If the question is more general in character, consider the "Unicode" tag instead.
Learn more…96 questions
Sort by count of
-
71
votes8
answers49747
viewsHow do I remove accents in a string?
I have a string áéíóú That I want to convert to aeiou How do I remove accents? Need to save to database as a URL.
-
55
votes2
answers39510
viewsHow to remove accents and other graphic signals from a Java String?
How to remove accents and other graphic signals from a Java String? Ex.: String s = "maçã"; String semAcento = ???; // resultado: "maca"…
-
51
votes6
answers15594
viewsHow to do a search ignoring Javascript accent?
Suppose I have a list of words, in Javascript (if necessary, already ordered according to the rules of collation): var palavras = [ "acentuacao", "divagacão", "programaçao", "taxação" ]; Notice I…
-
35
votes2
answers1067
viewsIs there a problem using Unicode characters for code identifiers?
Today it is common for compilers of programming languages to allow the code file of their programs to accept code with Unicode characters. This is useful, especially for those who use Portuguese and…
-
24
votes7
answers59028
viewsRefactoring function to remove punctuation, spaces and special characters
I have this function already too old to "clean" the contents of a variable: Function function sanitizeString($string) { // matriz de entrada $what = array(…
-
20
votes4
answers19928
viewsstrtoupper() with accents
The function strtoupper() PHP is not turning the accented letters into uppercase, see the example: echo strtoupper("virá"); // retorna VIRá Do you have any native function that solves this problem?…
-
17
votes3
answers3083
viewsHow to do a search ignoring Python accent?
Suppose I have a list of words, in Python (if necessary, already ordered according to the rules of collation): palavras = [ u"acentuacao", u"divagacão", u"programaçao", u"taxação", ] Notice I didn’t…
-
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…
-
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…
-
8
votes2
answers2322
viewsHow to ignore accents in an SQL query?
How could I perform a query ignoring words with letters that contain accents? Example of words: Olá, é, Lógica, Pão I tried using the command collate noaccents as follows: select c.* from Curso c…
-
7
votes3
answers2527
viewsHow to determine the sort of accented characters in Mysql?
My table uses "utf8-general-ci" so all accents are OK. But when I have for example Aa, Ac and Áb and I want to filter "in alphabetical order", the result is: Aa Ac Áb About Excel, the result is: Aa…
-
7
votes5
answers26037
viewsAccentuation in the JSON
I have accentuation problems when printing JSON. If I use characters like ã, õ, ô, ç, some codes appear. I do not know if it influences, but the column is with Collation "utf8_general_ci". php…
-
5
votes2
answers3128
viewsAngularjs - accents
I’m using AngularJS and Wamp Server. In the program I am doing I have an array: ($rootScope.fruits = ["banana","maça","laranja",'época'];) That you’re giving the seats a problem. So I put in the…
-
5
votes2
answers12681
viewsHow to resolve accentuation problems when using the setlocale function?
I am trying to define the language of the program to Portuguese, using the setlocale(LC_ALL,"Portuguese"), however, much of the program was done on Ubuntu. When the other programmer sent me the…
-
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
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
votes2
answers3087
viewsAccent problem, running at Windows Prompt
I am creating software in Python, I’m having trouble accentuating the strings. The program is simple.. It asks a question to the user (name, version, description, etc.) and adds the answers to those…
-
4
votes1
answer243
viewsUse of bitmap font in Haxeflixel
I’m working on a game using the framework Haxeflixel 2D and I’m having some difficulties using bitmap fonts to render accented characters. But to make it easier I’m going to divide the question into…
-
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
answer648
viewsaccent problems when running php
Good morning guys, I’m having trouble executing the code php in the browser, in any browser, it does not recognize the accent. It was necessary to use the following line of code for the accent to be…
-
4
votes2
answers2045
viewsPHP accent problem, Mysql
I have a very strange problem with my PHP code. All my charset are correct <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> I already use the…
-
4
votes1
answer1323
viewsMake comparison using String.Contains() disregarding accents and case
I need to check how to make a comparison between strings, in C#, using the method Contains() that so disregards the sensitivity of accents and marry of a string. Example: var mainStr = "Acentuação";…
-
4
votes1
answer376
viewsHow to ignore the accents in Listview on Android?
I was making an app for me kind of joking around and I came across a problem, the ListView Android Studio does not ignore the accents of Portuguese. Could someone post a code to fix this? Like do…
-
4
votes1
answer859
viewsError while removing accents
I have a javascript code to remove accents, it works with any accent, less with the crase, and the code should work with the crase as well. I can’t find the bug. var teste = "Çaptúra de Tela…
-
3
votes1
answer2118
viewsHow to remove non-alphanumeric characters without losing accentuation?
I am able to remove the non-alphanumeric ones as follows preg_replace('/[^a-z0-9\s]/i', null, $string ); However, in this way I am losing the accentuation of words, someone has some answer?…
-
3
votes3
answers1773
viewsHow to bypass an accent in mysql + Php
I have in my database words with accents and when I want to call I use this SQL below. But if a word in the database has accent I need to also use the word accented in my search, otherwise nothing…
-
3
votes1
answer1296
viewsHow to accent in Python
I’m writing a program and it keeps giving ascii error. I’ve put this on the first line and nothing: # -*- coding: utf-8 -*- On request, follows edition explaining what is now. now is variable for…
-
3
votes3
answers4536
viewsIncorrect accentuation when generating PDF
After several searches on the net, I could not solve my problem with accentuation (charset). I am generating a report in FPDF and in the description field comes out all disfigured text: I’ve used…
-
3
votes1
answer121
viewsExport to database
I load 3 Strings from a CMS. String Data da Noticia String Titulo da Noticia String Texto da Noticia Within a loop, create the query to insert with these 3 strings. I’m just having some problems.…
-
3
votes1
answer423
viewsHow to print accent on a Console Application project . NET Core
using System; namespace MediaDoisNumeros { class Program { static void Main(string[] args) { Int16 numero1, numero2; Double media; Console.Write("Digite o numero 1 : "); numero1 =…
-
3
votes1
answer143
viewsHow to return independent accentuation search on Asp.Net MVC systems
I have a problem in a system in relation to the search that does not return result for accentuation reasons. I would like to know how to make the accent be ignored in the system ? Note the system is…
-
3
votes2
answers866
viewsCompare using String.Contains() disregarding accents and case
I know there’s already question, I even used the same title to call attention, but this one refers to C#, I’m having this problem in java, code: //historico e searchC são ArrayLists, no caso do case…
-
2
votes2
answers1486
viewsCompare strings to accents, UTF-8
Something is escaping me here, I am doing Curl to a weather page, if the results have accents and comparing with exactly the same string in full this condition returns false (not equal). This is…
-
2
votes1
answer75
viewsGrails 3.0 encoding does not work outside the index.gsp
I am creating a Grails project with version 3.0.4 and something strange occurs: Two Gsps with the same content: views > index.gsp: views > Domain > show.gsp: <!DOCTYPE html>…
-
2
votes2
answers963
viewsIs there a way to use accents in strings in LUA?
I’m looking for a way to use string accents in the LUA language. I’ve tried this texto='Pão,está,cabeçalho,' Because in the engine I am using (ROBLOX studio), the game only writes until the stretch…
-
2
votes1
answer2550
viewsCapitalize string with accented characters
I have a problem saving words with accents in MYSQL. My bank is all set in ut8_unicode_ci and on my php pages <meta charset="utf-8">. This solved my initial problem with accents, but I wanted…
-
2
votes1
answer691
viewsSort with Accentuation in Elasticsearch
I’m trying to make an ordination with Elastic Search, however some fields have accentuation, as name of cities, I tried to use fields with index not_analyzed and with ptbr in the second form: {…
-
2
votes2
answers3115
viewsProblems with UTF-8 ISO-8859-1 mysql php accentuation
I’m having stress problem using PHP/Mysql When I use: header("Content-Type: text/html; charset=UTF-8",true); <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> the HTML code…
-
2
votes1
answer197
viewsAccent problem ( -jar mysql)
Hello, I made a program in Java that inserts several texts in a database, running from my machine (Mac Os), everything works very well. But, putting in a VPS (Windows) for the program to run 24/7,…
-
1
votes1
answer79
viewsProblem with Portuguese in ADT
I’m working on a Android App, and a friend of mine sent me the app that he worked, but had a problem, all characters in our language like "ç" became things like c'@%, evidencing problem in…
-
1
votes1
answer1134
viewsManipulating links with accents
I am capturing news links posted on a particular site using the following code: function academia(){ function makeNews(res){ var soup = $(res.responseText).find('div [class~="tileImage"] h2');…
-
1
votes1
answer212
viewsProblem insert file name in database
I am uploading files with plupload using codeigniter. My problem is when there are special characters in the file name. Being that I have to record that original name. When there is for example:…
-
1
votes0
answers1859
viewsMYSQL, problem with characters importing csv
I am passing the Maxmind csv database to mysql and some accented characters are giving problem. In Latin appears a ? and in UTF nothing appears. CSV : Östra Frölunda UTF8 : LATIN1: ?stra Fr?lunda I…
-
1
votes0
answers476
viewsCollation does not recognize accentuation
Ttenho 2 banks in Sqlserver, bank A with the collation SQL_Latin1_General_CP850_CI_AS and another bank called B with the collation Latin1_General_CI_AS. At bank A imports information to bank B. A…
-
1
votes2
answers598
viewsWhy am I not getting into the if Else of this code
import java.util.ArrayList; import java.util.Iterator; import java.util.Scanner; public class ControladorVeiculo { public static void main(String[] args) { ArrayList <Veiculo> veiculos = new…
-
1
votes2
answers1088
viewsOrderby with accents
I’m trying to sort a map with some data, but I can’t sort the words with accents. They always come last, I need a hint to sort a map. Follows the code: (function(angular) { 'use strict';…
-
1
votes3
answers1413
viewsHandle accent with Jquery
I’m having trouble treating stress in jQuery. I would like to remove word accents and replace spaces with "%20". I tried to do it the way down, but it didn’t work. cidade_sem_tratar =…
-
1
votes1
answer234
viewsFile output accentuation problem saved on equipment
Good guys I have the following file saved in my equipment "names.txt", this one containing 1190 lines. Follow my python2.7 code: #/usr/bin/python env # -*- coding: UTF-8 -*- abrir =…
-
1
votes1
answer240
viewsAccentuated error - Search ZIP - Magento
Hello, I’m doing an address search through the zip code in a function, then I pick up the result and create a session with the name of the city and the state, acontce that every time I have a city…
php magento character-encoding function accentuationasked 8 years, 9 months ago Quebrando Cabeca 131 -
1
votes3
answers3324
viewsRemoving Accents and Transforming Spaces into PHP strokes
I updated my PHP and my following Script which I used to transform the text without accents, and the spaces in strokes (-) no longer works in PHP due to the ereg_replace is obsolete. <?php…