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
6
votes
3 answers

Strange characters in first row of array after fgetcsv

I have a CSV file where the first "cell" is just an int, 9, in this case. The next line is 10 for the first "cell" and so on. When I do $array = fgetcsv($file); the first cell of the first line has these weird characters in front of the value:…
CR47
  • 843
  • 4
  • 12
  • 33
5
votes
3 answers

System.ArgumentException illegal characters in path

I am using Path.Combine, and one of the strings contain a Unicode characters. I get {System.ArgumentException} exception; illegal characters in path. According to MSDN filepath/name can have unicode characters. Why do I get this…
MOZILLA
  • 5,862
  • 14
  • 53
  • 59
5
votes
2 answers

"Illegal character" in the jQuery library file, even without an invisible character or a missing quote anywhere

What I'm trying to do I'm programming a currency converter, and to not have to manually update the current currency, I get the current value from another website trough AJAX and Whatever Origin (to allow access to another domain). I tested it in a…
Yuuza
  • 179
  • 9
5
votes
1 answer

Windows Form Designer Error "Illegal characters in path."

Last week I closed my working VS 2012 (11.0) project and today I am unable to load up the Windows Form Designer. Instead, I get this message: "To prevent possible data loss before loading the designer, the following errors must be resolved: Illegal…
valsidalv
  • 761
  • 2
  • 19
  • 33
4
votes
5 answers

What's the illegal character in this string ? I'm getting MSBUILD : error MSB3095

I was creating some build definitions in TFS2010 without problem until now. MSBUILD Command: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /nologo /noconsolelogger "C:\Builds\Neptune\Sources\\Branches\v5.0-Ehub\EHub-5.0.sln" /m:1 /fl…
Conrad Clark
  • 4,533
  • 5
  • 45
  • 70
4
votes
1 answer

How to fix an extra alignment and illegal character error when making a table in LaTex, Overleaf

I have created a table in Latex and it has stopped displaying it but I need it to work on the document I am currently working on. When I input into a new document, it works again. I am getting the following errors: LaTex error: Illegal character in…
anadiss
  • 51
  • 1
  • 3
4
votes
1 answer

Why do I get an error in Firefox when uploading an image to the sitecore media library?

Every time I try to upload an image to the Media Library using Firefox, I get a pop up error that says "An error occured while uploading a file". Upon examination of the sitecore logs, I see the following in the stacktrace: 288 11:29:27 ERROR…
user1431072
  • 1,272
  • 2
  • 13
  • 32
4
votes
1 answer

CXF - com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 5))

I found on internet that problem is that soap request contain unicode char for ,,ctrl + v", which is illegal character in Xml. I dont know how this get into String, but I want simple to remove it on server side. Can plase someone give me the point…
Petr Kostroun
  • 456
  • 9
  • 27
3
votes
1 answer

How can I get the valid Entries of a ZipArchive when one them contains illegal characters?

I am using System.IO.Compression to extract the content of some Zip files. The problem is that whenever there is an entry with a filename that contains some Windows' illegal characters then an exception is thrown. I have tried several things but I…
3
votes
2 answers

In a Hibernate SQL query how do you escape ? character in the field name

This is a SQL Server DB and the developer, many years ago, made a column name for boolean values contain a ? character. Many systems access this DB, so changing this column name isn't really an option for me. This works in native MS tools: SELECT…
3
votes
1 answer

How to delete folder with 'illegal' name in SVN via Tortoise (Windows)

Somehow, and I have no idea how, I have managed to create a folder in our SVN repo called "C:" This is preventing me from updating my working copy - I get the error '.' is not valid as filename in directory 'C:\SVN' All the actual files/folders are…
kpollock
  • 3,899
  • 9
  • 42
  • 61
3
votes
1 answer

Powershell WebClient DownloadFile Exception Illegal Characters in Path

I am trying to download zip files from an FTP site, based off retrieving a directory list to find file names. Download Portion: $folderPath='ftp://11.111.11.11/' $target = "C:\Scripts\ps\ftpdl\" Foreach ($file in ($array | where {$_ -like…
snoop
  • 379
  • 3
  • 8
  • 21
3
votes
4 answers

Will URLEncode fix this problem with illegal characters in file names (C#)?

I'm building an application that uses an elaborate API to fetch data from Youtube, and the data files are saved with the name of the corresponding video as the file name. However, my program is crashing because quite a lot of the videos on YouTube…
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173
2
votes
1 answer

Can I bypass a UnicodeDecodeError in python?

I have a python script that parsing an xml file and is returning the following error: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 614617: character maps to I'm pretty sure the error is occurring because there…
bigmike7801
  • 3,908
  • 9
  • 49
  • 77
2
votes
2 answers

How to precisely check for illegal characters of file paths?

I am developing a Shiny app, which generates folders and subfolders for each user and each of their experiments. I wish to ensure that neither the user nor experiment names contain any illegal characters. I define a character vector with every…
1
2
3
9 10