You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling XMLStreamReader.getLocation().getCharacterOffset() works ok for utf-8 xml files.
But when file is for instance in iso-8859-2 encoding returned value is less by length of "" prolog.
I guess that ReaderScanner created in ByteSourceBootstrapper.doBootstrap is not given current position.
And thus length of prolog is not taken into account.
Calling XMLStreamReader.getLocation().getCharacterOffset() works ok for utf-8 xml files.
But when file is for instance in iso-8859-2 encoding returned value is less by length of "" prolog.
I guess that ReaderScanner created in ByteSourceBootstrapper.doBootstrap is not given current position.
And thus length of prolog is not taken into account.
demo here:
anomen-s/programming-challenges@4c9d1a6
The text was updated successfully, but these errors were encountered: