192 questions
1
vote
1
answer
118
views
InetPton() implies "127.0.0.1" is not a valid IP. Why? [closed]
I am trying to create a C program that opens a connection via TCP, but when calling InetPton with "127.0.0.1" as the IP, it returns 0, meaning the passed string is not a valid IP address.
...
1
vote
2
answers
194
views
Rest Template Returns Response in Garbled Characters Some Sort of Chinese
I am using rest template to call API, when I hit the API using rest template it returns some garbled characters like Chinese.
ResponseEntity<String> response = restTemplate.exchange(url, method, ...
0
votes
0
answers
59
views
Error handling json: invalid char in json text
I am using the jsonlite library that should work well with the json file format that jspsych outputs in.
I am trying to read all of the files within a folder into a single R dataframe.
Here is the ...
0
votes
0
answers
683
views
! Text line contains an invalid character
I'm trying to compile my R markdown file as PDF but i'm getting this error,
> ! Text line contains an invalid character.
l.234 ## i Use the ^^[
]8;;http://conflicted.r-lib.org/...
0
votes
0
answers
115
views
How to handle "invalid character" errors with PHP xml_parse?
When parsing a file received from a trusted third party, I've an error Invalid character (error code: 9) caused by the invalid HTML entity  (see weird things below).
How could I handle that ...
0
votes
1
answer
43
views
C user input sporadic invalid results
Coding in C, I'm having an issue with user input. Sometimes, the input works and sometimes it doesn't.
Example run output from terminal:
dennis@MBP2021 Encryption % make
cc Gronsfeld_Cipher.c /Users/...
0
votes
0
answers
77
views
Solve Git problem to avoid storing filenames/paths having backslash chars, which are invalid in Windows
I would like to solve Git problem to avoid storing filenames/paths having backslash chars, which are invalid in Windows, like /etc/systemd/system/snap-git\x2dfilter\x2drepo-7.mount.
I should add a ...
3
votes
3
answers
971
views
PHP XMLReader parser error : xmlParseCharRef: invalid xmlChar value
I'm parsing a very large Xml files, so I need to use the XMLReader of PHP.
They cannot be modified from the source. So they have to be parsed as they are.
The problem is that the documents contain ...
0
votes
0
answers
100
views
Invalid Char in body when using ExchangeServices.SendEmail
I have some code that sends emails when there is an error. One of the things it includes is the "Stack Trace". Well sometimes that Stack Trace ends up with some "special characters&...
3
votes
3
answers
3k
views
cannot fix in Safari: SyntaxError: Invalid character: '#' after upgrade to Angular 16
I upgraded to Angular 16, i have upgraded packages and I get the following error in Safari: SyntaxError: Invalid character: '#'
My safari version is 14. In Chrome I do not get this error and the ...
-3
votes
3
answers
531
views
Remove all files from Git repo history with path having escape \ in filename with git filter-repo
I have special filenames with escape \ characters stored in Git repository on Debian 10 Linux.
Problem: it is not possible to git checkout files on Windows, which have incompatible characters in the ...
3
votes
3
answers
531
views
How to remove all files from GIT repo history with path having colon : in filename?
I have ISCSI node filenames with colons stored in GIT repository on Debian 10 Linux.
Example:
'iscsi/nodes/iqn.2000-01.com.synology:NAS01-DS916.nas/ff11::111:11ff:ff1f:1ff1,3260,1/default'
'iscsi/...
0
votes
1
answer
195
views
When assigning Clipboard I get the error "varible name contains an illegal character"
I'm trying to set the clipboard to a string but the string has characters causing the "varible name contains an illegal character" error. I'm not sure how I'm suppose to go about this error ...
1
vote
1
answer
559
views
User not receiving email to confirm email address in MediaWiki
I'm setting up a MediaWiki page. I go to Preferences after I have logged in with my admin account. I try to send a confirmation email at my email address. I don't receive anything.
I'm the owner of ...
-1
votes
1
answer
186
views
My while loop doesn't loop in my code when user input an invalid character like a space, nothing, special characters, and and letters [duplicate]
I am trying to make a credit card checker which displays whether the input aka the card number is invalid, Mastercard, visa, or Amex.
i want the code to re ask the user to enter a number if a user ...
1
vote
0
answers
123
views
Procedure to determine how a requirements file was generated
Context: I am working with python codes developed by different teams and each teams provides their corresponding requirements file. Trying to install the requirements via pip (pip install -r ...
0
votes
1
answer
442
views
Encode invalid/unencoded characters in a JSON
Sometimes I get JSON from a backend that contains unencoded/invalid characters. For example, they might contain an (unencoded) character with ASCII code 31, which means that when I try to do ...
0
votes
1
answer
403
views
invalid characters happens by using truncate(0) in python
I used truncate(0) in python to overwrite data on my file. Part of the code is like this:
l=f.readlines()
f.truncate(0)
for w in l:
data=w.split()
if 105==int(data[0]):
...
0
votes
1
answer
530
views
Forward slash "/" in string converted to "/", is that platform independent behaviour?
I have a Python script that reads an html into lines, and then filters out the relevant lines before saving those lines back as html file. I had some problems till I figured out that a / in the page ...
0
votes
1
answer
926
views
spark.read.schema return null for dataframe column values [duplicate]
I have small question and issue which I hope spark gurus can help me in
I have parquet file person.parquet that has multiple column with one row. one of the column "Middle Name" has space in ...
0
votes
0
answers
3k
views
Invalid character found in the request target spring boot
how can i solve this problem? i have seen some solutions but these solutions did not help me. here is the complete error.
java.lang.IllegalArgumentException: Invalid character found in the request ...
0
votes
1
answer
552
views
How can i redirect a not working url or removing the indexing of the url from google search console
How can i remove the indexing of the url from google search, I have this url, and we need to remove it because it does not work well.
This is the url - https://www.avon.com.gt/cam-home?curnav=Cuidado%...
-1
votes
1
answer
44
views
How to receive only the specifier value type and printing an appropriate message when not? [duplicate]
scanf("%x", &hexa_decimal_num);
I am trying to deal with the case of entering something wrong like "ZZ" and printing "Error!".
1
vote
2
answers
5k
views
PLSQL: Find invalid characters in a database column (UTF-8)
I have a text column in a table which I need to validate to recognize which records have non UTF-8 characters.
Below is an example record where there are invalid characters.
text = 'PP632485 - Hala A -...
0
votes
1
answer
2k
views
Getting error: Invalid number['"] the row will be skipped
We have one mapping source as flatfile and target as oracle table. Source file comma delimited file. In some rows we use to get ' or " enclosed values. We set optional quotes as double in source ...
1
vote
1
answer
1k
views
select globalmap using tDBinput with Talend give the error: Invalid character constant
I have to remove the accents from the person's name, but I cannot apply the function in Talend while it works in SQL oracle.
this query works in my tDBInput component :
"SELECT '"+((String)...
2
votes
2
answers
1k
views
In D365/X++, why is '(' invalid when I use "this" to indicate the variable lives on the instance?
I have the following class:
public class MyDialogSelect extends RunBase
{
private DialogField nameField;
// Snipped for brevity
public Object dialog()
{
Dialog dialog = super(...
0
votes
1
answer
156
views
Inserting Buffer array into mysql but it has invalid characters
I am trying to insert an image into a mysql table using React.js. The MySQL table is structured with 3 columns; device: String, name: string, image: longBlob. The image might need to be a different ...
1
vote
1
answer
185
views
What kind of character is "MZ" (unexpected token)?
I've got a program which is supposed to open files of a custom file type using file association. When doing it from inside the program, it does work correctly. But trying "Open with..." ...
-1
votes
1
answer
211
views
how could write a program to get age as an input?
I wanna do this but i got 3 issues a s I commented:
age = input("How old are you ? ")
if type(age) != int: # this line does't work
restart = input("invalid input. Do you want to ...
2
votes
1
answer
642
views
Store invalid input in a Python list
I know I can handle invalid inputs using the try: except ValueError:, but how can I store that input in a list or variable or whatever?
I want that when the user inputs text, the code tells "It ...
0
votes
0
answers
46
views
VBA - Create new worksheets based on a range with invalid worksheet characters
I'm trying to figure out a way to loop through a variable row of data and create Worksheet names based on the cell. The issue I'm having is that each cell has the following two issues:
They have ...
0
votes
2
answers
2k
views
Oracle SQL, column name gives ORA-00911: invalid character
I created a table through a pivot statement, which automatically creates some variable names that start with a number.
create table MYTAB as
select *
from (select x, anno, v, delta from tab_a13_2 ...
0
votes
2
answers
887
views
python handling invalid inputs from a user
I am stuck with this homework:
rewrite the following program so that it can handle any invalid inputs from user.
def example():
for i in range(3)
x=eval(input('Enter a number: '))
y=...
2
votes
3
answers
175
views
How To Replace a Double Set of Quotation Marks with a Single set of Quotation Marks [closed]
I am parsing some manifest files and need to sanitize them before I can load them as XML. So, these files are invalid XML files.
Consider the following snippet:
<assemblyIdentity name=""...
0
votes
0
answers
60
views
SyntaxError: invalid character in identifier errors in python [duplicate]
I am getting the following error:
SyntaxError: invalid character in identifier errors in python
In the below picture you can see invalid character in identifier in my project can you help me with ...
2
votes
2
answers
991
views
How to reject characters/ letters in a java program
When the program asks the user to input 10 elements (numbers), but the user entered any letter or word, I want the program to display "INVALID INPUT". I tried an if statement but it doesn't ...
1
vote
1
answer
55
views
terms.fomula data argument invalid
I am new to R Studio and now want to make a "cca". I followed a describtion but R says NO.
This is what Iam working with:
PreAbscca<- read.table("PreAbsenz.csv", header = TRUE, ...
-4
votes
2
answers
1k
views
How to tackle 'Invalid character in identifier'?
"Invalid character in identifier"
I am running a python file containing the given code in IDLE 3 on macOS Catalina. Whenever i run the code, it shows an error. I am unable to understand the ...
0
votes
0
answers
319
views
Invalid Characters appearing in .js files
I'm hosting a website currently that was working perfectly fine,
but then after trying to test out Chrome DevTools's Lighthouse feature, two of my js files started having Chinese characters show up in ...
0
votes
2
answers
3k
views
Can Tomcat 9 Remove Invalid Characters on the URL
I noticed that if a user purposefully enters an invalid URL character such as "[" or "]" on the URL an exception is thrown by Tomcat. I'm using JSP and the page code is never ...
1
vote
1
answer
5k
views
Node.js XML builder Error: Invalid character in name: during creation of XML document
I am trying to create the XML file using the node.js and npm package xmlbuilder. When I am trying to create the tags I have some special characters such as : / etc due to which I am getting the ...
0
votes
1
answer
801
views
Spring to Oracle UTF-8 character truncation
I have an issue with invalid characters appearing in an Oracle database. The "¿" or upside-down question mark. I know its caused by UTF8 encoding's being put into the encoding of the Oracle ...
0
votes
0
answers
486
views
Powershell printing invalid characters when there are ascent characters in the data
I am having data in the database. Using Powershell Invoke-RestMethod, I am trying to fetch the data. When I am trying to save the output to a Variable and print it, it is showing me invalid characters ...
0
votes
1
answer
475
views
How to insert a row of record in SQL Developer with invalid character?
I found that there is a record inserted in a table of our client's production database. I cannot select one field of that record but I can select other fields by SELECT SQL statement.
A_TABLE
---------...
-2
votes
1
answer
1k
views
Can't delete filename with invalid character windows 10
[Filename has invalid character ][1]
0
votes
1
answer
85
views
Invalid character identifier error within a data dictionary
I am trying to make dataframe for a final project at school. I have already calculated the numbers for everything, however, Python is not happy with the data dictionary that I am making. I have tried ...
0
votes
1
answer
111
views
Python codec safe_encode method
Given a byte string, for instanceB = b"\x81\xc9\x00\x07I ABCD_\xe2\x86\x97_" I want to be able to convert this to the valid printable UTF-8 string that is as UTF-8 as possible: S = "\\x81\\xc9\\x00\\...
0
votes
1
answer
400
views
Unix - Invalid character in date/time specification
I am trying to find last day of the month.
Date in DDMMYYYY format.
#!/bin/bash
start_date=01092018
end_date=$(date +%m%Y -d "$start_date +1 month")
echo $end_date
Expected Result :30092018
But it ...
4
votes
3
answers
3k
views
Java DOM transforming and parsing arbitrary strings with invalid XML characters?
First of all I want to mention that this is not a duplicate of How to parse invalid (bad / not well-formed) XML? because I don't have a given invalid (or not well-formed) XML file but rather a given ...