Bug 280233 - Unrecognized character is replaced by unicode replacement character on saving
Summary: Unrecognized character is replaced by unicode replacement character on saving
Status: RESOLVED DUPLICATE of bug 145754
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.4.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 04:06 EDT by Sjoerd CLA
Modified: 2009-06-15 07:53 EDT (History)
1 user (show)

See Also:


Attachments
File with unrecognized character (6 bytes, text/plain)
2009-06-15 04:06 EDT, Sjoerd CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sjoerd CLA 2009-06-15 04:06:37 EDT
Created attachment 139148 [details]
File with unrecognized character

Build ID: M20080911-1700

Steps To Reproduce:
1. Open a file with a character in it that is not recognized in the character encoding. This character will show as the replacement character (diamond with question mark) in the editor.
2. Alter the file, save the file.
3. Instead of the original character, the replacement character is now saved. In the file contents, the character 0xFFBF is put instead of the original byte sequence.


More information:
Comment 1 Dani Megert CLA 2009-06-15 05:24:21 EDT
Which encoding are you using? Using 3.5 RC4 I get a dialog preventing the save.
Comment 2 Sjoerd CLA 2009-06-15 07:10:10 EDT
I use encoding UTF8. Behavior is the same in 3.4.2 (M20090211-1700) and Galileo RC3 (20090605-1616). I get no dialog. I simply press Ctrl-S to save.
Comment 3 Dani Megert CLA 2009-06-15 07:53:39 EDT

*** This bug has been marked as a duplicate of bug 145754 ***