Re: XM_EIFFEL_INPUT_STREAM
Bernd Schoeller <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jul 14, 2006 at 11:08:33AM +0200, Eric Bezault wrote: > This answers only the first question. Is there a way > to know whether there is a BOM (I guess that in that case > the offset is always 2) or should we scan the beginning > of the file/stream by hand to figure that out? > knowing the position relative to what is shown in an > editor is one thing, knowing the position in the input > stream is another that could also be interesting. > AFAIK, the BOM in UFT16 is 2 bytes, is UTF32 is 4 bytes and in UTF8 it is 3 bytes. In any case, the offset is 1 character. Bernd ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: [email protected] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/gobo-eiffel/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/