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.
Questions tagged [non-ascii-characters]
1055 questions
5
votes
0 answers
R - Issue with French accented characters
Since I have updated R to 4.1.0/4.1.1 versions on W10, I have 2 problems concerning French accented characters.
In RGui menu, accented characters are not correctly displayed 4.0.3/4.1.0 display comparison
In R console in Emacs, accented characters…

Newb'R
- 61
- 2
5
votes
3 answers
How can I identify different encodings against files without the use of a BOM and beginning with non-ASCII character?
I got a problem when trying to identify the encoding of a file without BOM, particularly when the file is beginning with non-ascii characters.
I found following two topics about how to identify encodings for files,
How can I identify different…

Eason
- 338
- 5
- 11
5
votes
2 answers
Defeat these dashed dashes in SQL server
I have a table that contains the names of various recording artists. One of them has a dash in their name. If I run the following:
Select artist
, substring(artist,8,1) as substring_artist
, ascii(substring(artist,8,1)) as ascii_table
, ascii('-')…

basinbasin
- 419
- 1
- 5
- 12
5
votes
1 answer
python: writing ★ in a file
I am trying to use:
text = "★"
file.write(text)
In python 3. But I get this error message:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0: ordinal not in range(128)
How can I print the symbol ★ in a file in python? This is…

TJ1
- 7,578
- 19
- 76
- 119
5
votes
1 answer
Similar looking UTF8 characters for ASCII
I'm looking for a table which contains ASCII characters and same looking UTF8 characters. I know it also depends on the font is they look the same, but something generic to start with is enough.
>>> # PY3 code:
>>> a='H' # ascii
>>> b='Н' #…

ddofborg
- 2,028
- 5
- 21
- 34
5
votes
0 answers
Displaying custom (personally created) Unicode characters on a site
Let's say I created a shorthand writing system with its own custom set of unique characters that don't exist in Unicode.
Is there a way that I could:
personally draw each character,
then assign each character its own code in Unicode,
then…

jamiestroud69
- 277
- 1
- 12
5
votes
1 answer
Can std::cin fail to pass a user input in the command line to a variable with a type of char?
I have tried passing different inputs with the below code, but have failed to get the message printed: "Oops, you did not enter an ASCII char, let alone one that is y or n!" I have entered various Unicode characters which are not of char type…

James Ray
- 424
- 3
- 15
5
votes
1 answer
UnicodeDecodeError in pickle.load
I'm having some problems with loading a pkl file using pickle. I'm using windows 7 and Python 3.5.1 64 bit. The pkl file was downloaded from here.
This is my code:
import pickle
# Load model weights and metadata
weightFile = open('vgg16.pkl',…

HelloGoodbye
- 3,624
- 8
- 42
- 57
5
votes
3 answers
c reading non ASCII characters
I am parsing a file that involves characters such as æ ø å. If we assume I have stored a line of the text file as follows
#define MAXLINESIZE 1024
char* buffer = malloc(MAXLINESIZE)
...
fgets(buffer,MAXLINESIZE,handle)
...
if I wanted to count the…

beoliver
- 5,579
- 5
- 36
- 72
5
votes
4 answers
regex to also match accented characters
I have the following PHP code:
$search = "foo bar que";
$search_string = str_replace(" ", "|", $search);
$text = "This is my foo text with qué and other accented characters.";
$text = preg_replace("/$search_string/i", "$0", $text);
echo…

Felix Bernhard
- 396
- 6
- 24
5
votes
1 answer
This Codeigniter function doesn't account for all accented characters
This is a list of accented characters I have found here.
ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
I have used the Codeigniter function convert_accented_characters to convert accented characters to ASCII characters. However, it…

Abs
- 56,052
- 101
- 275
- 409
5
votes
2 answers
JavaScript - match non-ascii symbols using regex
I want to match all mentioned users in comment. Example:
var comment = '@Agneš, @Petar, please take a look at this';
var mentionedUsers = comment.match(/@\w+/g);
console.log(mentionedUsers)
I'm expecting ["@Agneš", "@Petar"] but getting…

Limon Monte
- 52,539
- 45
- 182
- 213
5
votes
0 answers
How to print in Printer's Default fonts using C# code?
i have LQ EPSON 300 Printer
i want to Print some data in Printer's default font
i think it will be possible if we use c# code to print by that printer's default font.
PrintDocument pd = new PrintDocument();
pd.DefaultPageSettings.PaperSize = new…

sangeen
- 304
- 2
- 3
- 14
5
votes
3 answers
Character looks like ASCII 63 but isn't so I can't remove it
I'm reading text from a text file. The first string the text file has to read is "Algood ", and note the space. In Notepad, it appears that there is a space in this string, but it isn't. When I test the 6th (zero-based index) character in Visual…

Lou
- 2,200
- 2
- 33
- 66
5
votes
2 answers
django HttpResponse and unicode
I'm using django as the backend to a webapp. I'm sending json data via django and it has worked fine. However recently I have started dealing with non-ascii data and noticed some unusual behavior with the non-ascii characters. In my webapp I have…

jmetz
- 815
- 1
- 9
- 19