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
6
votes
3 answers

How to detect rows with chinese characters in MySQL?

How can I detect and delete rows with Chinese characters in MySQL?
chubbyk
  • 6,212
  • 13
  • 53
  • 67
6
votes
1 answer

Ruby and Accented Characters

Summary of the wall of text below: How can I display accented characters (so they work via puts, etc) in Ruby? Hello! I am writing a program for my class which will display some sentences in Spanish. When I try to use accented characters in Ruby,…
Derek
  • 833
  • 2
  • 9
  • 13
6
votes
1 answer

Non-ASCII characters scrambled when writing response in ASP.NET Core

If I put this Startup in an ASP.NET Core application the text will be scrambled (ÅÄÖ). Same thing happens if I do it in a middleware. Passing Encoding.UTF8 to WriteAsync doesn't help. public class Startup { public void…
Allrameest
  • 4,364
  • 2
  • 34
  • 50
6
votes
3 answers

How to convert \xXY encoded characters to UTF-8 in Python?

I have a text which contains characters such as "\xaf", "\xbe", which, as I understand it from this question, are ASCII encoded characters. I want to convert them in Python to their UTF-8 equivalents. The usual string.encode("utf-8") throws…
6
votes
2 answers

How to measure the correct size of non-ASCII characters?

In the following program, I'm trying to measure the length of a string with non-ASCII characters. But, I'm not sure why the size() doesn't print the correct length when using non-ASCII characters. #include #include int main() { …
msc
  • 33,420
  • 29
  • 119
  • 214
6
votes
6 answers

Remove Unicode characters in a String

How do I remove all special characters which don't fall under ASCII category in VBA? These are some of the symbols which appear in my string. Œ œ Š š Ÿ ƒ There are many more such characters. These don't belong to ASCII category as you can see…
Jeevan
  • 447
  • 2
  • 8
  • 19
6
votes
3 answers

Accept non ASCII characters

Consider this program: #include int main(int argc, char* argv[]) { printf("%s\n", argv[1]); return 0; } I compile it like this: x86_64-w64-mingw32-gcc -o alpha alpha.c The problem is if I give it a non ASCII argument: $ ./alpha…
Zombo
  • 1
  • 62
  • 391
  • 407
6
votes
2 answers

Using iTerm2, how do I enter characters with accent marks?

I have a few friends whose names have letters like 'ö'. In all other places in OS X I can hold down the 'o' and then select 2 in the little popup menu. This does not work in iTerm2. In iTerm2 I get a lot of o's. I have also set in the OS X keyboard…
penchant
  • 2,263
  • 3
  • 14
  • 20
6
votes
1 answer

Clarification on potential issues with equality of accented characters with non-binary collations

For a website with international support, I am using utf8mb4 charset and utf8mb4_unicode_ci collation in most tables and columns. Performance is not paramount and accurate sorting in a variety of languages is important. I understand how the…
dnag
  • 335
  • 1
  • 9
6
votes
1 answer

Asciifolding not working Elastic Search Rails

I am having a really bad time trying to get "asciifolding" working for my Rails app. I want to search words containing "accented" characters for example i want "foróige" to come up when i search "foroige". I have tried many things. A couple of them…
AMBasra
  • 969
  • 8
  • 24
6
votes
1 answer

For some reason I can not produce accented characters in console [ é, ü, etc. ]

This was working fine until a Mac OS update. I reinstalled RVM, rails, ruby, everything. Nothing works so far. In my Mac Terminal, I can produce a é, but once in console, I can produce the character, with alt + character, and then when I type the…
Trip
  • 26,756
  • 46
  • 158
  • 277
6
votes
6 answers

’ is being displayed instead of -

’ is being displayed instead of - in php page I tried using different encoding types like: and but…
jeevan
  • 165
  • 2
  • 4
  • 7
6
votes
2 answers

Replace non-ascii chars with a defined string list without a loop in R

I want to replace non-ascii characters (for now, only spanish), by their ascii equivalent. If I have "á", I want to replace it with "a" and so on. I built this function (works fine), but I don't want to use a loop (including internal loops like…
Álvaro
  • 98
  • 1
  • 6
5
votes
1 answer

How to remove accents from string in C?

Is there is a more efficient way to remove accents from string without make an big array with the characters to replace? For example: removeaccents("áèfoo") Output: aefoo In the ASCII table there no accents, I have no idea how to do this. Thanks…
Jack
  • 16,276
  • 55
  • 159
  • 284
5
votes
4 answers

Non-ASCII characters in C

I was looking at google go's runtime source code (at https://go.googlecode.com/hg/src/pkg/runtime/ ), and it seems they use a special character for their function names, · . (Look for example at https://go.googlecode.com/hg/src/pkg/runtime/cgocall.c…