Scotland Yard said Jaswant Singh Chail, from Southampton, has been charged with an offence under section 2 of the Treason Act 1842, which is “discharging or aiming firearms, or throwing or using any offensive matter or weapon, with intent to injure or alarm Her Majesty”.
He has also been charged with threats to kill and possession of an offensive weapon.
Edinburgh news: Emergency services called to street in Capital after bin lorry hits block of flats
Edinburgh weather: Here is when the storm is set to hit the Capital and the Lothians today
St James Quarter: Video shows leaking in Edinburgh's new shopping centre as a storm set to hit the Capital
A71 crash: Edinburgh commuters face delays after ‘serious’ two-vehicle crash at Dalmahoy Junction
East Lothian crime news: Woman taken to hospital after serious assault in Musselburgh
The 20-year-old is in custody and will appear at Westminster Magistrates’ Court on August 17.
Nick Price, head of the CPS Special Crime and Counter Terrorism Division, said: “Mr Chail, 20, has been charged with making threats to kill, possession of an offensive weapon and an offence under the 1842 Treason Act.
“The CPS reminds all concerned that criminal proceedings are active and that he has the right to a fair trial.”