Questions tagged [non-ascii-characters]

ASCII stands for 'American Standard Code for Information Interchange'. ASCII is a character-encoding scheme based on the ordering of the English alphabet. Since ASCII only contains definitions for 128 characters, numerous other encoding schemes have been created to include characters from other alphabets and other symbols.

1055 questions
21
votes
1 answer

How to print Greek letter delta in c++

I have a small console based application that will solve physics equations. I am trying to ask the user if they want to find the ΔV in a given situation, but I can't figure out how to print the letter delta to the console. Here's my code: cout <<…
Will Callender
  • 356
  • 1
  • 2
  • 8
18
votes
5 answers

Ignoring accents while searching the database using Entity Framework

I have a database table that contains names with accented characters. Like ä and so on. I need to get all records using EF4 from a table that contains some substring regardless of accents. So the following code: myEntities.Items.Where(i =>…
Øyvind Bråthen
  • 59,338
  • 27
  • 124
  • 151
18
votes
3 answers

UnicodeDecodeError in Python 3 when importing a CSV file

I'm trying to import a CSV, using this code: import csv import sys def load_csv(filename): # Open file for reading file = open(filename, 'r') # Read in file return csv.reader(file, delimiter=',',…
Ryan Rapini
  • 365
  • 1
  • 3
  • 11
18
votes
2 answers

preg_match with international characters and accents

I would like to validate a string with a pattern that can only contain letters (including letters with accents). Here is the code I use and it always returns "nok". I don't know what I am doing wrong, can you help? thanks $string =…
Vincent
  • 1,651
  • 9
  • 28
  • 54
16
votes
3 answers

How to get the Unicode code point for a character in Javascript?

I'm using a barcode scanner to read a barcode on my website (the website is made in OpenUI5). The scanner works like a keyboard that types the characters it reads. At the end and the beginning of the typing it uses a special character. These…
J_rite
  • 572
  • 1
  • 12
  • 28
16
votes
5 answers

How to filter a column with Non-accented characters using select query

I have a MySQL table (test) with utf-8 charset encoding. There are three entries, two entries with normal characters and another name with accent characters. CREATE TABLE test ( id Integer, name VARCHAR(50), PRIMARY KEY (id) ) ENGINE=InnoDB…
SST
  • 2,054
  • 5
  • 35
  • 65
15
votes
5 answers

Why can Haskell not handle characters from a specific website?

I was wondering if I can write a Haskell program to check updates of some novels on demand, and the website I am using as an example is this. And I got a problem when displaying the contents of it (on a mac el capitan). The simple codes…
awllower
  • 571
  • 1
  • 9
  • 21
15
votes
8 answers

jQuery DataTables - Accent-Insensitive Alphabetization and Searching

When using jQuery DataTables is it possible to do accent-insensitive searches when using the filter? For instance, when I put the 'e' character, I'd like to search every word with 'e' or 'é', 'è'. Something that came to mind is normalizing the…
15
votes
6 answers

Accented characters in mySQL table

I have some texts in French (containing accented characters such as "é"), stored in a MySQL table whose collation is utf8_unicode_ci (both the table and the columns), that I want to output on an HTML5 page. The HTML page charset is UTF-8 (< meta…
s427
  • 1,454
  • 5
  • 17
  • 33
14
votes
3 answers

Compare two string and ignore (but not replace) accents. PHP

I got (for example) two strings: $a = "joao"; $b = "joão"; if ( strtoupper($a) == strtoupper($b)) { echo $b; } I want it to be true even tho the accentuation. However I need it to ignore the accentuation instead of replacing because I need it…
Penny
  • 253
  • 1
  • 5
  • 15
13
votes
3 answers

Does . really match any character?

I am using a very simple sed script removing comments : sed -e 's/--.*$//' It works great until non-ascii characters are present in a comment, e.g.: -- °. This line does not match the regular expression and is not substituted. Any idea how to get .…
Julio Guerra
  • 5,523
  • 9
  • 51
  • 75
12
votes
2 answers

Javascript regular expression problem with \b and international characters

I'm having a lot of problems with a simple regular expression match. I have this string with accented characters (this is just an example) "Botó Entrepà Nadó Facebook! " and I want to match words using words from another list. This is a simplified…
JLP
  • 121
  • 1
  • 3
12
votes
3 answers

Check If the string contains accented characters in SQL?

I want to perform a task if the input string contain any accented characters else do another task in SQL. Is there any way to check this condition in SQL ? Eg: @myString1 = 'àéêöhello!' IF(@myString1 contains any accented characters) Task1 ELSE …
Sooraj K S
  • 133
  • 1
  • 1
  • 7
12
votes
2 answers

"(?i)" does not work with accents

I have a Java method that looks for a word inside a phrase ignoring the case sensitivity of the word, and if it finds the word then it removes it from the phrase. The word and the phrase can be anything. They're variant. Here is my code : private…
Brad
  • 4,457
  • 10
  • 56
  • 93
12
votes
3 answers

How to printf accented characters in ANSI C (like á é í ó ú)

I tried to printf with some accented characters such as á é í ó ú: printf("my name is Seán\n"); The text editor in the DEVC++ IDE displays them fine - i.e the source code looks fine. I guess I need some library other than stdio.h and maybe some…
sean
  • 121
  • 1
  • 1
  • 3
1 2
3
70 71