Questions tagged [invalid-characters]

191 questions
0
votes
1 answer

.net invalid characters when converting string to xml

I'm trying to convert web response to xml. However, even if xml string is validated, i'm getting "invalid character error" when i try to convert response string to XmlDocument. I also apply the accepted answer in here. Code is below: public…
Dilara Albayrak
  • 314
  • 1
  • 3
  • 23
0
votes
1 answer

How configure Spring / Woodstox jaxws to strip out CTRL-CHARs from a proxy SOAP service response

I have been looking to find a solution to alter/strip out the SOAP response from a proxy service before it hits to Woodstox's DeserializationException. Below is the exception I am getting. Before giving out straigt answers like CTRL-CHAR's are not…
UCJava
  • 307
  • 4
  • 19
0
votes
1 answer

Fiddler adding line breaks and hex

Does anyone know why I would be experiencing line breaks and HEX in the raw output of a JSON response in Fiddler? Here's a segment and you can see from the image that several lines new lines are inserted preceded by hex. Is this the result of some…
ChrisCurrie
  • 1,589
  • 6
  • 15
  • 36
0
votes
2 answers

"JMSException: Invalid character '\n' in value part of property"

I am trying to connect to a JMS server and post a message to the queue. When I run the Java program that creates a simple MapMessage and inserts it into the queue, I get this exception: javax.jms.JMSException: Invalid character '\n' in value part…
PyNerd
  • 645
  • 2
  • 9
  • 19
0
votes
1 answer

How to workaround 0x01 invalid character exception. Using Xdocument

Im trying to parse a folder with a bunch of xml files. The xml files contains information about some vehicles. The XML files are autogenerated and i some of them has invalid characters. The thing is that, there are too many files for me to correct…
Adnan Hossain
  • 117
  • 2
  • 13
0
votes
2 answers

How do I allow input of strings in JOptionPane

If I want to allow input of an integer in JOptionPane, I would need String something= JOptionPane.showInputDialog(null, " "); int x = Integer.parseInt(something); However, this time I want to input string into the JOptionPane InputDialog. Is there…
Tragend
  • 17
  • 1
  • 3
0
votes
3 answers

Invalid character string partly recognized? c++

BLUF: In this function, \' prompt the error message but not \?, Why? char key[] = "\a\b\f\n\r\t\v\\\'\"#%&*;:<>\?/{|}~"; if (strpbrk(*local_str, key) != NULL ) { vico_param_out->out_valid = false; …
Mashuu
  • 15
  • 2
  • 8
0
votes
1 answer

Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ ) with defined set of String

I am trying to hard-code String but it gives me this error "Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \ )" Here is the String value is [{"timeStamp":"11\/05\/2014 11:11:28"," how to hardcode this string? I tried but…
dev_android
  • 493
  • 1
  • 11
  • 29
0
votes
3 answers

My code outputs incorrectly

I am trying to make a program that calculates the area of a triangle given the values for all three sides. When I run my program with my runner file my area comes out to " 0.0" Here is the classes full code (also I know I did the same code for…
0
votes
2 answers

Change invalid characters in file names VBA

There is code below that I used to change ".." to ".". For example I have a name of file like "file..pdf" and I would like to have "file.pdf", but It removes all dots. I don't know how to change it: Function strLegalFileName2(ByVal FName) As…
user3114375
  • 97
  • 3
  • 12
0
votes
1 answer

Google search export: JSON wrong diacritics

I have downloaded history of my Google search from here but the diacritics (latin-extended characters) in JSON files (encoded in utf-8) are messed up. E.g.: dva na ôsmu displays as dva na �smu and when I use JSON intedation package in Sublime…
wewo
  • 700
  • 7
  • 16
0
votes
0 answers

bad character XML files and etree in python

I have xml files that I get xml character error for some. Example: lxml.etree.XMLSyntaxError: invalid character in attribute value, line 4, column 41976 I've read tons of things and tried them nothing helped. I would be interested to know solutions…
user3430235
  • 419
  • 1
  • 4
  • 12
0
votes
1 answer

How to round-trip "invalid XML characters" - aren't character references valid/applicable?

The following two code samples demonstrates this issue I am encountering where "invalid characters" are not encoded or decoded. var elm = new XElement("foo", "\x12") elm.ToString(); // ArgumentException: '', hexadecimal value 0x12, is an invalid…
user2864740
  • 60,010
  • 15
  • 145
  • 220
0
votes
2 answers

Is closing tag ">" a valid character in xml?

################### Update: thanks to user2622016 I relized the ">" is valid . Now , in my c# code I have a class that one of its fields has ">" as its value. I want to serialize the class to xml WITHOUT the ">" being escaped to > . I am using…
nati
  • 91
  • 2
  • 8
0
votes
1 answer

Incomplete response from webservice C# SoapClient

My software use a 'Service Reference', auto generated to deal with a 3party SOAP webservice. The service has a method that return a response with a single string property This string has some data with ';' separators, include a XML text with…
Fabio Avila
  • 41
  • 10