I have a string that says "the following characters are invalid: "! @ # $ % ^ \& * ( ) / \ or space" and i don't know how to put the & symbol into an xml file without causing an error? I know you are suppose to do something along the lines of \& but I'm not sure exactly what it is?
Inserting ASCII characters To insert an ASCII character, press and hold down ALT while typing the character code. For example, to insert the degree (º) symbol, press and hold down ALT while typing 0176 on the numeric keypad. You must use the numeric keypad to type the numbers, and not the keyboard.
Go to Insert > Symbol > More Symbols. Go to Special Characters. Double-click the character that you want to insert. Select Close.
Unicode characters can then be entered by holding down Alt , and typing + on the numeric keypad, followed by the hexadecimal code – using the numeric keypad for digits from 0 to 9 and letter keys for A to F – and then releasing Alt .
If \&
doesn't work, try the XML entity &
.
& would be &
.
Wikipedia has a list of XML and HTML character entity references.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With