Robin Berjon wrote: > > Hi, > > yet another SAC question. I note that there is no charset callback defined > in SAC. Granted, this is something that is more likely to interest the > actual parser than the sink but it could still be of relevance to the > latter under certrain circumstances. For instance, if I were to translate > CSS to another style language (say XSL) using SAC I might want to use the > same charset in the output. > > Is there any reason that I haven't seen that justifies the absence of a > charset(charset) callback ? startDocument receives an InputSource and InputSource.getEncoding() Get the character encoding for a byte stream or URI. I guess a charset callback could be useful but keep in mind that it might not always represent the real encoding of the CSS file, depending on the charset parameter on the text/css mimetype (actually, the rfc2318 doesn't say anything about that. might it should). PhilippeReceived on Tuesday, 20 March 2001 16:51:40 UTC
This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:57 UTC