Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-09-26 12:37:57


Damien Fisher wrote:
> AFAICT (from the spec at
> http://www.w3.org/TR/2000/REC-xml-20001006#sec-internal-ent), the ability to
> switch between encodings for a given stream is vital for a conformant XML
> parser, as it must support at least UTF-8 and UTF-16 encodings, and these
> can be changed at an entity-by-entity level.

It looks like you can call imbue() at any time to set a new locale and thus
change the encoding interpretation of the underlying stream at any time.
At least I couldn't find anything in the standard forbidding this.

> it seems from a cursory
> inspection of the documentation for my implementation of the STL that such
> an ability is lacking.

Try a different standard library.

Jens Maurer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk