Home » railML newsgroups » railml.common » [railVIVID 2.02] case sensitivity for xml encoding
[railVIVID 2.02] case sensitivity for xml encoding [message #3633] Fri, 23 May 2025 22:11 Go to previous message
Mathias Vanden Auweele is currently offline  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
 
Read Message
Read Message
Read Message
Previous Topic: [RailVivid 2.0] Check internet connection
Next Topic: [railML3] Additional Attributes for Revision Management
Goto Forum:
  


Current Time: Sun Feb 15 03:31:23 CET 2026