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
3
votes
1 answer

ASC Visual Basic for Java

I need a function on Java that do the same as ASC function on Visual Basic. I've had looking for it on internet, but I can't found the solution. The String that I have to know the codes was created on Visual Basic. It's according to ISO 8859-1 and…
3
votes
2 answers

encoded nsdata utf8 json, with accented char in ios

i make a post request to a webserver that answer me with a JSON, this is the header of the response : Cache-Control: private Content-Length: 826 Content-Type: application/json; charset=utf-8 Date: Wed, 04 Feb 2015 05:53:59 GMT Server:…
ilmetu
  • 448
  • 11
  • 27
3
votes
3 answers

How to replace a character in a string with a non ascii character in python?

I want to replace the number sign (#) with a character similar to that called music sharp sign (♯). I tried the following line but didnt work. res['n'].replace('#', '♯') I also tried these and also didnt work fine. res['n'].replace('#',…
Sina
  • 183
  • 1
  • 10
3
votes
3 answers

Why are non-ASCII characters displayed as weird symbols?

I have two cases here: My database contains a lot of information which I want to fetch to the page. Some of this information is name which contain non-ASCII characters like Uwe Rülke - Old solution which works well: I fetch the data from the…
user2517028
  • 784
  • 1
  • 11
  • 25
3
votes
2 answers

Print non ASCII characters as their hex in PHP

How do I print a string in PHP in which all the non-ASCII characters gets converted to their HEX value (eg. 0x02) and displayed? I want users to know that they are entering non-ASCII values. I don't want to strip them. Instead, I would like to…
Binoj D
  • 115
  • 2
  • 13
3
votes
1 answer

create URL slugs for chinese characters. Using PHP

My users sometimes use chinese characters for the title of their input. My slugs are in the format of /stories/:id-:name where an example could be /stories/1-i-love-php. How do I allow chinese characters? I have googled and found the japanese…
Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
3
votes
1 answer

Solr How to search ñ and Ñ with normal char N and vice verse

How can we map non ASCII char with ASCII character? Ex.: In solr index we have word contain char ñ, Ñ [LATIN CAPITAL LETTER N WITH TILDE] or normal n,N Then what filter/token we use to search with Normal N or Ñ and both mapped.
Jignesh
  • 117
  • 1
  • 10
3
votes
2 answers

Spanish accent in BundleDisplayName

I need add an spanish accent in the Bundle Display Name but I get this result in screenshot above in devices and simulator. The problem is the accent was moved over the wrong letter (the word must be show "Caligrafía" not the accent over the "f" as…
Beto
  • 3,438
  • 5
  • 30
  • 37
3
votes
3 answers

Mysql replace all special unicode characters with their ascii counterpart

I have a field with encoding utf8-general-ci in which many values contain non-ascii characters. I want to Search for all fields with any non-ascii characters Replace all non-ascii characters with their corresponding ascii version. For example:…
workwise
  • 1,003
  • 16
  • 33
3
votes
4 answers

How to truncate non-ascii characters from string using PHP

I have a following string as a Filename $string = 'recyclage plétre francin.jpg'; and tried with following code echo preg_replace('/[^a-z0-9|^.]/i', '_', iconv("UTF-8","ISO-8859-1//TRANSLIT",$string)); as there is a special (non-ascii) character in…
Smile
  • 2,770
  • 4
  • 35
  • 57
3
votes
6 answers

French accents in MATLAB gui

I'm working on a MATLAB program with a gui. I want to have text labels and buttons in french, but it doesn't work. For example, the word 'Paramètres' in the code becomes Paramètres on the gui. I checked the file encoding and it's utf-8. What can I…
user2482876
  • 288
  • 4
  • 15
3
votes
2 answers

Java: insert accented characters in mysql

If I have this query from java: String query="insert into user (..., name, ...) values (..., 'à', ...)"; Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection con =…
Martina
  • 1,852
  • 8
  • 41
  • 78
3
votes
2 answers

Remove non-ascii characters from a variable in shell script

I am grep'ing the output of a command inside shell script and store the result in a variable. There is a very corner case where this variable might have non-ascii characters because of parse logic used by grep. Question: How do I remove these…
Sudar
  • 18,954
  • 30
  • 85
  • 131
3
votes
5 answers

Java's charsets / character encoding

I have a file in Spanish so it's full of characters like: á é í ó ú ñ Ñ Á É Í Ó Ú I have to read the file, so I do this: fr = new FileReader(ficheroEntrada); BufferedReader rEntrada = new BufferedReader(fr); String linea =…
coconut
  • 1,074
  • 4
  • 12
  • 30
3
votes
4 answers

Remove letter accents from a given text

Maybe I'm missing something obvious, but is there a "painless" way to replace the accented letters in a given text with their unaccented counterparts? I can only use the standard ANSI C libraries/headers, so my hands are tied. What I've tried so…
Nancy B.
  • 31
  • 1
  • 3