Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Does Eclipse warn if file contains characters outside of text file encoding?
Does Eclipse warn if file contains characters outside of text file encoding? [message #1567893] Fri, 16 January 2015 16:41 Go to next message
Dave H is currently offline Dave HFriend
Messages: 24
Registered: January 2015
Junior Member
I'm changing my text file encoding to UTF-8, but I'm worried that it might open files that contain characters outside of that format that will be ignored or removed or replaced, so will Eclipse warn me about that? I'd rather have a default, be warned about files that are an exception, and have it edit in a recognizable format just for that file.
Re: Does Eclipse warn if file contains characters outside of text file encoding? [message #1569448 is a reply to message #1567893] Sat, 17 January 2015 13:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Dave,

There are no characters outside the UTF-8 format. But of course a file
on the file system is just bytes and if you tell Eclipse those bytes are
a UTF-8 encoding and they actually aren't (e.g., Cp1252 on Windows) the
results of loading might look/be wrong. It's not clear how you are
doing the changes, but generally you need to load (open the editor) with
the actual encoding, use the Edit menu to change the encoding to UTF-8,
and then save. If you're on Windows and are using the default
encoding, and don't have any characters above ASCII 128, that encoding
overlaps with UTF-8...


On 16/01/2015 5:41 PM, Dave H wrote:
> I'm changing my text file encoding to UTF-8, but I'm worried that it
> might open files that contain characters outside of that format that
> will be ignored or removed or replaced, so will Eclipse warn me about
> that? I'd rather have a default, be warned about files that are an
> exception, and have it edit in a recognizable format just for that file.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Installing SVN in OMNeT++
Next Topic:Re: elcipse debugger crash
Goto Forum:
  


Current Time: Fri Apr 26 18:54:50 GMT 2024

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

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

Back to the top