Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Encoding
Encoding [message #290834] Thu, 01 September 2005 21:48 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Problems accessing schema *.exsd when plugin is deployed as single jar archive
Next Topic:Eclipse default encoding of files
Goto Forum:
  


Current Time: Thu Mar 28 09:08:02 GMT 2024

Powered by FUDForum. Page generated in 0.04149 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top