Bug 63047 - [encoding] UTF-16 Little Endian BOM is saved as Big Endian BOM
Summary: [encoding] UTF-16 Little Endian BOM is saved as Big Endian BOM
Status: RESOLVED DUPLICATE of bug 60636
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 14:03 EDT by Rafael Chaves CLA
Modified: 2004-05-21 16:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2004-05-19 14:03:04 EDT
i20040519

Saving a file whose contents originally had a UTF-16 Little Endian BOM will
always change the BOM to be a UTF-16 Big Endian.



1 - After saving the contents externally (I use Notepad on XP to change the BOM)
with Unicode (= UTF-16 Little Endian BOM), force a refresh on the changed file.
The properties dialog will show the file has a UTF-16 encoding with a Little
Endian BOM. 
2 - Open the file with the text editor. The right encoding will be used to read
the file contents. 
3 - Make some changes in the editor and save. The properties dialog (Notepad as
well) will show the file has a UTF-16 encoding with a Big Endian BOM (should
still be Little Endian).
Comment 1 Dani Megert CLA 2004-05-21 11:54:47 EDT

*** This bug has been marked as a duplicate of 60636 ***
Comment 2 Rafael Chaves CLA 2004-05-21 16:58:18 EDT
Never mind, I just realized that when you save a file using UTF-16 that is what
happens...