The null character, abbreviated NUL, is a control character with the value zero.
Questions tagged [null-character]
101 questions
1
vote
1 answer
Tolerate certain characters in RegEx
I am writing a message formatting parser that has the capability (among others) to parse links. This specific case requires parsing a link in the from of and replacing that text with just the linkname. The issue here is that both url…

Potassium Ion
- 2,075
- 1
- 22
- 39
1
vote
2 answers
Reading up to null character in Kotlin character by character from socket response
So say I have a stream being returned from a socket connection. The stream is being returned terminated with '\0' but in kotlin I can't seem to get this to work the same way. The code below is in Java and I am probably just over looking something…

Catlin Cox
- 13
- 4
1
vote
2 answers
What happens to null character when string is reversed using reverse loop
I am new with strings in C++. I am just confused with the working of the code below (used to reverse a string).
std:: string rev;
for(int i= str.size()-1; i>=0; --i)
{
rev.push_back(str[i]);
}
…

HN Learner
- 544
- 7
- 19
1
vote
2 answers
Storing NUL characters (ASCII 0)
I've created a program in C++ that prompts the user for a filename and for the requested filesize. The program checks if the requested filesize is bigger than the actual filesize and then adds null characters (the ones with code 0) at the end of the…

rhino
- 13,543
- 9
- 37
- 39
1
vote
3 answers
Seamlessly know the size of a string containing a null char
Long question for a very simple & rookie problem BUT yet I need some advise.
Background
So I have a binary file that I need to parse. This file starts with some magic string that contains the null char (\0). let's define is as ab\0cd.
I'm writing a…

idanshmu
- 5,061
- 6
- 46
- 92
1
vote
1 answer
Why does this C++ program print irrelevant characters?
Hey i am new to programming in C++, and i get the hang of it but i got stuck on this one simple problem i am suppose to create a shift cipher using the letters A-Z and shifting them 3 places, i get everything but when i do my output i get extra…

Eric
- 11
- 1
1
vote
1 answer
h:selectOneRadio is passing null character instead of null value
In my JSF pagecode, I have something similar to the following:

Chatoyancy
- 143
- 1
- 17
1
vote
1 answer
Is the ɴᴜʟ character forbidden in filenames for Git repositories?
Without considering any implementation behaviour or host ᴏꜱ, are there by design, characters which aren't allowed in file or directory names?
I’m especially interested (considering Git is sometimes used as front-end) if the ᴀꜱᴄɪɪ ɴᴜʟ character is…

user2284570
- 2,891
- 3
- 26
- 74
1
vote
0 answers
VB.net Null Characters
I am appending a very large text file, however when it is complete and I go to view it i get the following error. Null characters (00H) contained in file.
This is the code I'm using to read all the text files to one large text file. I am opening…

vbvirg20
- 115
- 12
1
vote
1 answer
RSA on ASCII message problems with '\0'
I want to encrypt and decrypt ASCII messages using an RSA algorithm written in assembly.
I read that for security and efficiency reasons the encryption is normally not called character-wise but a number of characters is grouped and encrypted…

Ozelotl
- 23
- 2
1
vote
2 answers
Python reading until null character from Telnet
I am telneting to my server, which answers to me with messages and at the end of each message is appended hex00 (null character) which cannot be read. I tried searching through and through, but can't seem to make it work, a simple example:
from…

brian
- 509
- 3
- 14
1
vote
1 answer
SQL CLR User Defined Function (C#) adds null character (\0) in between every existing character in String being returned
This one has kept me stumped for a couple of days now.
It's my first dabble with CLR & UDF ...
I have created a user defined function that takes a multiline String as input, scans it and replaces a certain line in the string with an alternative if…

Ricky
- 15
- 3
1
vote
1 answer
Reading NULL character from Serial Port Linux C
I have read many questions and answers but didn't find any solution. May be my question is not right but I need some guidance. I am using serial port in Linux which is reading data from my Arduino device. Whenever I want to send data from Arduino to…

moonzai
- 429
- 5
- 19
1
vote
0 answers
Strange null character sequence in output file
I write a graph to a simple text file format (adjacency list). In one instance, I discovered that the resulting file contains a strange very long line of "NUL" characters.
Where might these null characters come from? What do they mean?
The code…

clstaudt
- 21,436
- 45
- 156
- 239
0
votes
1 answer
What's a good character to separate strings with leading white-spaces?
I'm using the null character (\0) as a separator to keep the strings leading white-spaces after the sprintf. But the strings with the null character don't work (in this case) with the Curses addstr function.
Is there some suitable character to…

sid_com
- 24,137
- 26
- 96
- 187