ascii Questions

11

Solved

I need to convert large UTF-8 strings into ASCII. It should be reversible, and ideally a quick/lightweight algorithm. How can I do this? I need the source code (using loops) or the JavaScript code...
Superphosphate asked 7/5, 2009 at 12:17

4

I am writing some code to print overlapping ASCII character objects and I want some to be invisible instead of the typical " " white space character. Would this solve it? cout << ch...
Aubin asked 20/1, 2014 at 20:22

2

I was curious if I should encode urls with ASCII or UTF-8. I was under the belief that urls cannot have non-ASCII characters, but someone told me they can have UTF-8, and I searched around and coul...
Partite asked 12/3, 2014 at 16:14

6

Solved

I have the following code: cout << "String that includes a £ sign"; However, the £ sign is not being recognised by the compiler, and instead an accented u is being displayed. I'm able to i...
Lambdoid asked 30/9, 2010 at 14:2

6

Solved

I'm trying to make this ASCII image shown in the console: _______ \ ___ `'. /| .--. ' |--.\ \ || |__| | | \ ' || .--. | | | ' || __ __ | | | | | | _ _ ||/'__ '. .:--.'. | | | | ' .'| ' /...
Jeth asked 15/10, 2020 at 23:59

3

Solved

I have two identical strings in javascript with some spaces. When I printed the ascii values by using str.charCodeAt(n) it is showing the values as 32 and 160. I googled the values and it is showin...
Whoa asked 1/8, 2016 at 11:42

2

Solved

According to the Wikipedia article on UTF-16, "...[UTF-16] is also the only web-encoding incompatible with ASCII." (at the end of the abstract.) This statement refers to the HTML Standard. Is this ...
Gules asked 17/5, 2020 at 7:5

2

I permanently get the following error: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 27: ordinal not in range(128) I already tried x.encode("ascii", "ignore") x...
Pounds asked 27/10, 2014 at 17:11

11

Solved

What is ANSI encoding format? Is it a system default format? In what way does it differ from ASCII?
Lila asked 31/3, 2009 at 16:26

9

Solved

I have a FBX model which I would like to open in Blender but when I try to import the model it says: ASCII FBX files are not supported. Is there a way to import the model to Blender somehow? I don'...
Fearsome asked 20/2, 2015 at 18:26

10

Solved

I need to convert a (possibly) null terminated array of ascii bytes to a string in C# and the fastest way I've found to do it is by using my UnsafeAsciiBytesToString method shown below. This method...
Venial asked 27/9, 2008 at 18:13

2

Solved

I'm trying to sort strings ("A", "_", "a") using LINQ in C# in ASCII order while ignoring case sensitivity. According to the ASCII table, the strings I'm interested ar...
Thibodeaux asked 27/4, 2015 at 18:52

3

Not sure if this is the correct stackexchange to ask this question, but I was wondering whether anyone knows if the ascii diagrams in http://tools.ietf.org/rfc/rfc5755.txt page 6 are handcrafted o...
Mohr asked 6/12, 2012 at 9:53

3

According to the isascii() manpage: http://linux.die.net/man/3/isascii POSIX.1-2008 marks isascii() as obsolete, noting that it cannot be used portably in a localized application. I'm not su...
Ignatius asked 25/9, 2014 at 5:6

6

Solved

I have a string object "with multiple characters and even special characters" I am trying to use UTF8Encoding utf8 = new UTF8Encoding(); ASCIIEncoding ascii = new ASCIIEncoding(); objects in...
Precast asked 31/1, 2009 at 0:14

2

Solved

I'm using Visual Studio Code version 1.51.1 and am wondering if there is any way to display all of the ascii non-printable characters when looking at a file. I used to use Notepad++ and it had a fe...
Woolgrower asked 1/12, 2020 at 18:58

3

Solved

how can i convert ascii code to character in javascript
Natatorium asked 9/3, 2011 at 11:51

9

I've tried piping htop to a text file (e.g. htop > text.txt) but it gives me text garbled by formatting strings (see below). Is there a way to get nicer, human readable output? ^[7^[[?47h^[[1;3...
Mazzola asked 8/7, 2013 at 19:39

11

Solved

Lets say I have a string: char theString[] = "你们好āa"; Given that my encoding is utf-8, this string is 12 bytes long (the three hanzi characters are three bytes each, the latin character with the...
Sightseeing asked 4/9, 2011 at 8:15

4

Solved

Does Go have any method or there is a suggestion how to check if a string contains only ASCII characters? What is the right way to do it? From my research, one of the solution is to check whatever...
Hebner asked 30/10, 2018 at 16:38

3

Solved

I have a service bus, and the only way to transform data is via JavaScript. I need to convert a Guid to a byte array so I can then convert it to Ascii85 and shrink it into a 20 character string for...
Stern asked 13/1, 2010 at 17:15

10

Solved

How would you convert a string to ASCII values? For example, "hi" would return [104 105]. I can individually do ord('h') and ord('i'), but it's going to be troublesome when there are a lo...
Periodic asked 9/12, 2011 at 23:23

4

Solved

Unicode defines several control characters from ASCII. http://www.unicode.org/charts/PDF/U0000.pdf I see many control characters are widely used but I really don't see where "information separ...
Severalty asked 1/1, 2012 at 19:50

6

Solved

How do I get the ASCII value of a character as an int in Python?
Sybarite asked 22/10, 2008 at 20:39

2

Solved

When grid-template-areas: "....... header header" "sidebar content content"; is changed to: grid-template-areas: "....... header header" "sidebar header cont...
Templar asked 2/8, 2017 at 11:32

© 2022 - 2025 — McMap. All rights reserved.