Questions tagged [invalid-characters]

191 questions
6
votes
2 answers

how to run nodemon in windows from package.json

I'm following a VUE tutorial on a mac (shown in youtube). In my src/app.js I have only console.log('hi'); The start command for the Mac in package.json as shown on the youtube video is: "scripts": { "start":…
pashute
  • 3,965
  • 3
  • 38
  • 65
6
votes
1 answer

How to stop XMLReader throwing Invalid XML Character Exception

So I have some XML: my tagmy tag value and my invalid Character and an XMLReader: using (XmlReader reader = XmlReader.Create(new StringReader(xml))) { while (reader.Read()) { //do my thing …
JKennedy
  • 18,150
  • 17
  • 114
  • 198
5
votes
5 answers

C#: get rid of multiple invalid characters in string

I am new to C#. Say that I have a string like this: string test = 'yes/, I~ know# there@ are% invalid£ characters$ in& this* string^"; If I wanted to get rid of a single invalid symbol, I would do: if (test.Contains('/')) { test =…
Zizzipupp
  • 1,301
  • 1
  • 11
  • 27
5
votes
2 answers

ASP.NET Invalid character in a Base-64 string

I recently implemented ELMAH on my site and I have noticed that we frequently get the "Invalid character in a Base-64 string" error. I have never triggered it myself and none of our users have complained about it so I don't know what is going on.…
William
  • 1,457
  • 5
  • 21
  • 46
5
votes
1 answer

Git commit with invalid character on Windows

I got a Git repository that I accidentally pushed a file 4 commits ago that is located in (path relative to the repository root folder): /Core/C:/testoutput/agwqe1s.xml I did this on my Linux machine, so the actual file was created without any…
SHiRKiT
  • 1,024
  • 3
  • 11
  • 30
5
votes
3 answers

Filtering string in Python

I am making algorithm for checking the string (e-mail) - like "E-mail addres is valid" but their are rules. First part of e-mail has to be string that has 1-8 characters (can contain alphabet, numbers, underscore [ _ ]...all the parts that e-mail…
That_User
  • 929
  • 2
  • 7
  • 25
4
votes
2 answers

How to stop .net Xml Serialisation inserting illegal characters

Anything below 0x20 (except for 0x09, 0x0a, 0x0d i.e. tab, carrige return and line feed) cannot be included in an XML document. I have some data coming out of a Database and being passed as a response to a Web Service request. The Soap formatter…
Binary Worrier
  • 50,774
  • 20
  • 136
  • 184
4
votes
3 answers

Will string.Trim() ever remove *valid* characters from a filename?

I'm creating a class to store a filename. To do so, I need to know exactly which characters are invalid and exactly which characters are invalid as leading/trailing characters. Windows Explorer trims leading and trailing white-space characters…
Triynko
  • 18,766
  • 21
  • 107
  • 173
4
votes
3 answers

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 arbitrary Java String which may or may not contain…
stonar96
  • 1,359
  • 2
  • 11
  • 39
4
votes
2 answers

An interpolation string $ is considered as an invalid character and returns an error BC30037 (vb.net)

I'm setting up a Redis cache server in vb.net, so I started implementing the Redis class in my source code so I could use the class methods later. I currently have this error: "BC30037: invalid caracter" and I can't resolve it. The error comes from…
4
votes
1 answer

Invalid switch unless line is run separately

My .BAT has one Install Shield line that errors out with invalid switch /s, unless it is run in a separate command prompt. I'm new to all this, and all I can think is that it's because it is a different syntax. Is there a way to get this to run in…
ThexTallxDude
  • 137
  • 1
  • 1
  • 11
4
votes
3 answers

SCRIPT1014: Invalid character - Quote symbol

I have this problem: array[i].idAuthor is a String variable. I want to pass this String to a function which is called inside an append-String. The code works fine in Chrome and Firefox except for Internet Explorer. IE gives me this error:…
clyx
  • 82
  • 1
  • 8
4
votes
2 answers

Java Do While Statement with two conditions

I'm trying to learn java but I'm stuck trying to do a single program which concerns Do While Statement with two conditions. Specifically, I want a method to run until the user write "yes" or "no". Well, down there is my thing, what is wrong with it?…
4
votes
1 answer

$.ajax 200 OK, parseerror, invalid character on Internet Explorer 7,8,9,10

This chunk of code is working across Chrome, FF but its not working on Internet Explorer! It is just a simple JSON file call, get data, and display to HTML webpage. Take a look below: $.ajax({ type: "GET", url:…
3
votes
3 answers

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…
klor
  • 1,237
  • 4
  • 12
  • 37
1
2
3
12 13