Feature Requests item #1239830, was opened at 2005-07-17 19:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1239830&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Piotr Fusik (pfusik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Odd things about encoding

Initial Comment:
1. "UTF-8 Cookie" is not documented. I had to dig into 
source code to understand this option.
2. It's not possible to read or write a file in UCS-2 
without BOM. This is possible for UTF-8 (this is 
what "Cookie" is about).
3. It's not possible to convert a file between 8-bit and 
other encodings. Conversion between UTF-8 and UCS-2 
works.
To sum up, I think there should be following options in 
the Encodings menu:
8-bit
UTF-8 (with BOM)
UTF-8 (no BOM)
UCS-2 Big Endian (with BOM)
UCS-2 Big Endian (no BOM)
UCS-2 Little Endian (with BOM)
UCS-2 Little Endian (no BOM)
I understand that it's not possible to detect an encoding 
without a BOM (except for the "Cookie" trick).
Thus, it should be possible to switch a file from 8-bit to 
UCS-2. And, it should be possible to convert
a file from 8-bit to UCS-2.
My idea is that switching between 8-bit and any other 
option should ask the user whether he wants the file 
converted, e.g.
"Convert file from 8-bit to UCS-2 Big Endian? [Yes] / 
[No]". [Yes] would convert the file from 8-bit to the 
internal UTF-8.
[No] would convert the file from UCS-2 Big Endian to the 
internal UTF-8.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1239830&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to