Encoding [message #290834] |
Thu, 01 September 2005 21:48 |
Eclipse User |
|
|
|
Originally posted by: marek123.cs.cmu.edu
Hi!
I am trying to write an editor for JSGF-files. The first line of a
JSGF-file contains the encoding of the rest of the file as ASCII-text.
Every time opening the file I have to determine the encoding from the
first line and every time saving the file the encoding should be saved
right.
I tried to subclass FileDocumentProvider and overwrite the method
getEncoding to return the encoding read from the first line. This seams
not to work. Which classes and methods to I have to change?
Thanks for your help
Marek
|
|
|
Re: Encoding [message #291020 is a reply to message #290834] |
Tue, 06 September 2005 13:03 |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Marek wrote:
>Hi!
>
>I am trying to write an editor for JSGF-files. The first line of a
>JSGF-file contains the encoding of the rest of the file as ASCII-text.
>Every time opening the file I have to determine the encoding from the
>first line and every time saving the file the encoding should be saved
>right.
>I tried to subclass FileDocumentProvider and overwrite the method
>getEncoding to return the encoding read from the first line. This seams
>not to work. Which classes and methods to I have to change?
>Thanks for your help
>
>
Define a content type for JSGF file type and provide a content describer
(see IContentDescriber) which returns the correct charset [R3.1 or newer].
Dani
>Marek
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03289 seconds