| [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
|
|
|
|