NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Non-ASCII characters in editor.

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
DiRaven



Joined: 17 Jul 2011
Posts: 10

PostPosted: Sun Jul 17, 2011 3:26 pm    Post subject: Non-ASCII characters in editor. Reply with quote

Hello everyone.

Basically the problem is Netbeans does allow to input and shows non-ASCII characters. But when you save the file and then reopen it - you will end up with ??? instead of all non-ASCII chars. How do I fix this?

I'm working on the implementation of the module, that implements support of the new language. I have implemented and attached ANTLR both lexer and parser.

I'm providing my tool as an installer. So I need (somehow?) to make it working with different codepages properly. Or at least with the UTF-8 only, if previous thing is not possible. So it should read and write files in UTF-8 instead of the native encoding of the OS tool was run on.

I need these non-ASCII symbols mainly for comments and string_literal's if this in any help.

Thanks for your answer in advance. Keep in mind that I'm not yet a professional java / NB IDE developer, so the answer like "reimplement org.XX.XX.XXX module and be happy" probably will not help much. Still I appreciate any advice you may have.

Regards,
DiRave.
Back to top
DiRaven



Joined: 17 Jul 2011
Posts: 10

PostPosted: Sun Jul 17, 2011 3:30 pm    Post subject: Reply with quote

Additionally, I've tried to edit XML file within the same instance of the IDE. That one is saved properly... So it should be possible to fix the incorrect behavior somehow.
Back to top
DiRaven



Joined: 17 Jul 2011
Posts: 10

PostPosted: Sun Jul 17, 2011 7:54 pm    Post subject: Reply with quote

May be it's possible to:
1. Force global encoding to be utf-8 for the installation built with my modules set?
2. Force default encoding for my custom file type?
Back to top
DiRaven



Joined: 17 Jul 2011
Posts: 10

PostPosted: Tue Jul 19, 2011 9:52 pm    Post subject: Reply with quote

Still need an answer... any ideas, please?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo