Questions tagged [invalid-characters]
191 questions
3
votes
0 answers
SSIS Invalid character "." in filename error in script task
I have a task to split a single file into two separate files which I have done. However, afterward I need to move the source file from the source directory into an Archive folder so it does not get picked up again the next day.
The file name is…

thinkcoding
- 31
- 5
3
votes
1 answer
PCDATA invalid Char in R
First of all, I am sorry if this is a repeated question. I tried for several hours already and I see different solutions for PHP or other languages but not for R.
I am retrieving data from the last.fm website using their API.
You do need an API key…

JMarchante
- 123
- 1
- 4
- 11
3
votes
0 answers
JAX-WS: Remove incoming illegal null characters in XML SOAP
Environment:
* JAX WS 2.2.8
* Standalone publishing with Endpoint
Problem:
* External, non modifiable system send incoming requests with NULL (0x0) values ()
* jax-ws crashes, because XML unmarshalling doesn't allow…

Siegi82AT
- 123
- 7
3
votes
0 answers
Remove invalid JSON characters from an object's string property - ex: myObj.stringProp
I've got a WCF service returning a serialized object which I parse client side using $.parseJSON()
Works great 99% of the time. Unfortunately, it occasionally serializes invalid characters (ex: "

") and causes the parser to crash.
So far those…

daveomania_x
- 199
- 1
- 2
- 12
3
votes
3 answers
Why does VBScript say "Invalid Character" when using ExecuteGlobal to import a .vbs function library file?
I am encountering a "Invalid Character" error in my VBscript! In particular, within this block of code:
'*******************************************************************
'Import Code
'by Cheyne Wallace
'November 2008
'When using only VBscript…

Michael Innes
- 2,045
- 5
- 25
- 41
3
votes
0 answers
How can I detect invalid unicode code points in .NET?
I'm using some PInvoke calls (specifically GetWindowText()) and occasionally I get a string with invalid Unicode code points in it (probably due to bugs in the program whose window I'm looking at). When I later try to write that string to XML, I get…

Vilx-
- 104,512
- 87
- 279
- 422
3
votes
2 answers
How To Parse XML With Invalid Characters in Node Name?
So I'm trying to parse some XML, the creation of which is not under my control. The trouble is, they've somehow got nodes that look like this:

GWLlosa
- 23,995
- 17
- 79
- 116
2
votes
1 answer
How does StackExchange handle invalid characters in route URLs?
Scott Hanselman's post on using wacky chars in a Request URL, explains how IIS and ASP.Net security features can be circumvented to allow invalid characters to be passed on in a URL... but I am sure stack exchange is doing it different as his…

one.beat.consumer
- 9,414
- 11
- 55
- 98
2
votes
3 answers
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 html chars "" inside that the reader detect as not…

Jenemj
- 25
- 5
2
votes
2 answers
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();
nameField =…

Brian Kessler
- 2,187
- 6
- 28
- 58
2
votes
1 answer
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 is definitely not [text]" in some part of the code (as…

Manu1Volta
- 21
- 2
2
votes
3 answers
How To Replace a Double Set of Quotation Marks with a Single set of Quotation Marks
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:

IceCreamBoi23
- 399
- 5
- 12
2
votes
2 answers
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 work. Any help is much appreciated!
This is my code:
…

WiloWisk
- 137
- 3
- 10
2
votes
2 answers
Regex match invalid Unicode characters
I have strings like this:
ꐊ,ꀵ,\u0f6e,ⴗ,ꦚ,\u2d75,ꢯ,⾌,\ua97d,⩱,ㇴ,\u2d6e,鼺,\x00Ꞁ
and I want to filter out all these invalid characters beginning with a slash, which I am trying to do with regex in Python.
It does work like this:
re.sub(r",\u0f6e,",…

J Alan
- 77
- 1
- 11
2
votes
1 answer
Rename files with a forward slash in the filename (python)
We have a bunch of old files (1990s) that we're preparing to import into a new system. Some of these files have a forward slash / in their filename and we need to rename these before importing (they're going to end up in Azure).
We've got some…

Ben wood
- 21
- 1
- 5