|
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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.08283 seconds