| [railVIVID 2.02] case sensitivity for xml encoding [message #3633] |
Fri, 23 May 2025 22:11  |
Mathias Vanden Auweele
Messages: 88 Registered: February 2025 Location: Brussels
|
Member |
|
|
(Small comment)
When a railml file starts with:
<?xml version="1.0" encoding="utf-8"?>
railVIVID 2.02 will throw a warning saying that the file is not in UTF-8 encoding.
When the encoding value is changed to uppercase:
<?xml version="1.0" encoding="UTF-8"?>
railVIVID 2.02 has no problem.
The XML technical specification of W3: https://www.w3.org/TR/xml/#charencoding
Specifies that "XML processors SHOULD match character encoding names in a case-insensitive way"
But in any case it would be nice to have railVIVID also accept lowercase :)
Thanks!
Mathias Vanden Auweele
Railway data freelancer
https://matdata.eu
Brussels, Belgium
|
|
|
|
| Re: [railVIVID 2.02] case sensitivity for xml encoding [message #3638 is a reply to message #3633] |
Wed, 04 June 2025 11:22   |
Marharyta Vyskarka
Messages: 21 Registered: April 2025
|
Junior Member |
|
|
Dear Mathias,
Thank you for bringing my attention to this. You are right, both upper-case and lower-case letters should be allowed, I will fix it for the future railVIVID versions.
Thank you for the feedback!
Marharyta Vyskarka – Software Developer
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|
|
|