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
12
votes
1 answer
Node JS crypto, cannot create hmac on chars with accents
I am having an issue generating the correct signature in NodeJS (using crypto.js) when the text I am trying to encrypt has accented characters (such as ä,ï,ë)
generateSignature = function (str, secKey) {
var hmac = crypto.createHmac('sha1',…

Tommy
- 176
- 1
- 2
- 17
11
votes
2 answers
Java compilaton issue with ß character
I have come across a strange issue. In the below piece of code, I am searching for the presence of ß.
public static void main(String[] args) {
char [] chArray = {'ß'};
String str = "Testß";
for(int i=0; i

Betta
- 416
- 5
- 17
10
votes
3 answers
isalpha() giving an assertion
I have a C code in which I am using standard library function isalpha() in ctype.h, This is on Visual Studio 2010-Windows.
In below code, if char c is '£', the isalpha call returns an assertion as shown in the snapshot below:
char…

goldenmean
- 18,376
- 54
- 154
- 211
10
votes
2 answers
Formatting columns containing non-ascii characters
So I want to align fields containing non-ascii characters. The following does not seem to work:
for word1, word2 in [['hello', 'world'], ['こんにちは', '世界']]:
print "{:<20} {:<20}".format(word1, word2)
hello world
こんにちは 世界
Is…

usual me
- 8,338
- 10
- 52
- 95
10
votes
3 answers
How to find non-printable characters in the file?
I tried to find out the unprintable characters in data filein unix.
Code :
#!/bin/ksh
export SRCFILE='/data/temp1.dat'
while read line
do
len=lenght($line)
for( $i = 0; $i < $len; $i++ ) {
if( ord(substr($line, $i, 1)) > 127 )
{
…

user3759763
- 101
- 1
- 1
- 5
10
votes
5 answers
How to remove non-ascii chars using sed
I want to remove non-ascii chars from some file. I have already tried these many regexs.
sed -e 's/[\d00-\d128]//g' # not working
cat /bin/mkdir | sed -e 's/[\x00-\x7F]//g' >/tmp/aa
but this file contains some non-ascii chars.
[root@asssdsada ~]$…

user87005
- 964
- 3
- 10
- 27
9
votes
4 answers
How does string work with non-ascii symbols while char does not?
I understand that char in C++ is just an integer type that stores ASCII symbols as numbers ranging from 0 to 127. The Scandinavian letters 'æ', 'ø', and 'å' are not among the 128 symbols in the ASCII table.
So naturally when I try char ch1 = 'ø' I…

That new guy
- 103
- 1
- 4
9
votes
1 answer
PHP file_exists with accent returns false
I have two folders, Folder and Folderé. The second one could not be catch by PHP.
Here is my test:

Syl
- 2,232
- 8
- 34
- 45
9
votes
2 answers
Non-ascii characters in URL
I ran into a new problem that I've never seen before: My client is adding files to a project we built and some of the filenames have special characters in them because some of the words are spanish.
For example a file I'm testing has an á in it. I…

dave
- 125
- 3
- 11
8
votes
1 answer
Convert special character (i.e. Umlaut) to most likely representation in ascii
i am looking for a method or maybe a conversion table that knows how to convert Umlauts and special characters to their most likely representation in ascii.
Example:
Ärger = aerger
Bôhme = bohme
Søren = soeren
pjérà = pjera
Anyone any…

Andresch Serj
- 35,217
- 15
- 59
- 101
8
votes
1 answer
Converting Bad Text to Korean
The Problem
I'm working on cleaning up some old Korean code, and there are some sections of code that used to be Korean that I would like to translate to English. However, there seems to have been an encoding issue, and the text is no longer Korean.…

Zico
- 127
- 16
8
votes
3 answers
Powershell find non-ASCII characters in text file
I am trying to find a way using Powershell Script to do the following.
For each line in text file, check if line contains non-ASCII characters
If line contains non-ASCII characters, output to separate file
If line does not contain non-ASCII…

Arolix
- 81
- 1
- 1
- 3
8
votes
2 answers
Highlight words with (and without) accented characters / diacritics in jQuery
I'm using the jquery.highlight plugin: http://code.google.com/p/gce-empire/source/browse/trunk/jquery.highlight.js?r=2
I'm using it to highlight search results.
The problem is that if I search something like "café" it won't highlight any words.
And…

Santiago
- 2,405
- 6
- 31
- 43
8
votes
3 answers
Is it true that string literals in PHP can only be encoded in an encoding which is a compatible superset of ASCII, such as UTF-8 or ISO-8859-1?
I come across following text from the Details of the String Type page from PHP Manual :
Given that PHP does not dictate a specific encoding for strings, one might
wonder how string literals are encoded. String will be encoded in whatever
…

PHPLover
- 1
- 51
- 158
- 311
8
votes
2 answers
How to remove file with special characters?
I have a weird file on a Unix filesystem. It seems to have some special characters in the file name, but I've not been able to remove it. Even if I don't write the name directly in the rm command (and I do ls | rm instead), I get an error that the…

filip
- 89
- 1
- 1
- 4