RE: Dealing with encodings and file: URIs

> So you try again:
> 
>   <p:data href="windows-1252.txt">
>           content-type="text/plain; charset=windows-1252"/>
> 
> And much to your surprise, you get a botched file again.
> 
> Why?
> 
> Because the implementation of p:data opens windows-1252.txt and the
> filesystem reports that the content type is "text/plain" (without any
> encoding because how can the filesystem tell?)
> 
> "Server" metadata is authoritative so the charset that you specified
> is discarded.

Um. What kind of filesystem are you using that tells you the content
type?
Or are you talking about HTTP here (because you mention a server)?

Regards,
Vojtech

Received on Wednesday, 29 July 2009 12:40:45 UTC