Questions tagged [illegal-characters]

any of various circumstances where an invalid or unexpected token causes errors, or otherwise invalidates a data stream

Overview

Illegal characters refers to any of various circumstances where an invalid or unexpected token causes errors, or otherwise invalidates a data stream.

In this context, a token could be a keyword, an operator, or a punctuation mark.

In this context, an error could be any circumstance that violates an established processing rule or convention, such as the syntax rules for a programming language, or the encoding rules for a specific file type.

See also

146 questions
2
votes
2 answers

writing double quotes to file name text with powershell

I have been at great pains to see where I've gone wrong here in adding double quotes to file name text. The following code works fine under the -whatif umbrella but not without. $a = "20`" board" get-childitem | rename-item -newname {$_.fullname…
deanone
  • 23
  • 1
  • 3
2
votes
1 answer

The following variable name contains an illegal character... but I don't know what it could be

I'm having a problem running my script. I can't for the life of me figure out what the illegal character is. I have tried putting the string concatenation on separate lines, and I get the same error. I have tried using OneDate and TwoDate instead of…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
2
votes
0 answers

java illegal character error, how to fix?

I have tried changing the encoding type, does not seem to help, only occurs when trying to build Screenshots: If you notice, all errors are on the first line. That is not all the errors, but its the same for every class. The first line is package…
2
votes
1 answer

Customizing make.names function in R?

I am automating a R code for which I have to use make.names function. Default behavior of make.names function is fine with me but when my table name contains a "-", I want the table name to be different. For example, current behavior : >…
HiveRLearner
  • 107
  • 2
  • 10
2
votes
0 answers

ASP.NET MVC - Illegal characters in path - redirect from Application_Error

In my application I generated few url which contained " (double quotes), unfortunately. I corrected the url's but google bot already indexed wrong urls. Now I get quite often following exception: System.ArgumentException: Illegal characters in…
marek
  • 120
  • 1
  • 9
2
votes
2 answers

Helper for removing illegal characters?

I am using a user input string to create a url and I only want the url to contain lowercase letters and hyphens e.g. example.com/this-is-a-url In my model, I have added so far: def to_param name.downcase.gsub(" ", "-") end This makes it…
amaseuk
  • 2,147
  • 4
  • 24
  • 43
2
votes
2 answers

What does an unexpected token mean and can I solve it?

Android Studio is telling me that there are some "Unexpected Tokens".. what are these?? screenshots: error in code error in Messages
Coding John
  • 53
  • 2
  • 4
  • 18
2
votes
1 answer

Unable to find illegal Characters in Path

I am unable to find illegal characters in www.rightmove.co.uk/propertyMedia/redirect.html?propertyId=47772832&contentId=778055923&index=0 This is the URL I took from my debugger. I use the above URL in this method of WebClient string document…
Charlie
  • 4,827
  • 2
  • 31
  • 55
2
votes
1 answer

IText Pdf creation from Html fails if HTML contains special/illegal characters

Am using itext to create pdf from html content. I build html content in the form of table using java String buffer. A Map contains metadata values of the files in the form of key value pairs. I iterate these key and values to build the html table.…
Vijay
  • 415
  • 5
  • 18
2
votes
3 answers

Check Objective-C String for specific characters

For an app I'm working on, I need to check if a text field contains only the letters A, T, C, or G. Furthermore, I would like to make specialized error messages for any other inputed characters. ex) "Don't put in spaces." or "The letter b isn't an…
MacBoss123541
  • 198
  • 1
  • 17
2
votes
1 answer

illegal character syntax error is coming in javascript while trying to log event into flurry

I am using this following code to actually log event into flurry but on the first line it is showing me that illegal character in javascript. var myparameters = {}; myparameters['medium'] = '/appstore'; FlurryAgent.logEvent('_trackPageview',…
Hassan ilyas
  • 103
  • 8
2
votes
3 answers

C# File Path encoding and decoding

I am looking for a simple method to encode/escape and decode/unescape file paths (illegal characters in file paths "\/?:<>*| ) HttpUtility.UrlEncode does its job, except it does not encode the * character. All I could find was escaping with regex,…
Vicentiu B
  • 141
  • 1
  • 8
1
vote
1 answer

Intellij compilation error: "illegal character' for É sign

I have an Enum class in Java that contains the letter É: public enum Types { RÉSUMÉ } When trying to build the project, IntelliJ complains on the É sign: error: illegal character: '\u2030' RÉSUMÉ ^ I'm using Windows 10. In the past, the same…
riorio
  • 6,500
  • 7
  • 47
  • 100
1
vote
1 answer

Android Project Compiled with Ant doesn't compile, Illegal Character Error

I am using ANT to compile an Android app that I have built. It sounds weird and probably doesn't make a difference, but I used the Android SDK to build a new project and then I used .NET to programatically modify a couple files within the project so…
Greg
  • 3,086
  • 3
  • 26
  • 39
1
vote
1 answer

"Illegal characters in path" error opening service config file

I am trying to read a section of a Windows service configuration file and extract a value (port number). Following code works fine on my local machine but not in any server I tested even though the service is installed in exact same folder…
NoBullMan
  • 2,032
  • 5
  • 40
  • 93
1 2
3
9 10