Closed Bug 32945 Opened 24 years ago Closed 24 years ago

Need default character coding in Composer

Categories

(Core :: Internationalization: Localization, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 32301

People

(Reporter: teruko, Assigned: fergus)

Details

If you did not select any character coding in Composer and type Japanese characters, the page is saved as UTF-8 when you save the file.
If you select the characters coding menu and save the file, the file is saved as the character coding as you selected collectly (it will added the
Meta charset).

Steps of reproduce
1. Open Composer
2. Type some Japanese characters
3. Select menu File | Save.. and save as html file
4. Look at the file you saved in step #3
    It does not contains Meta charset.  It was saved as UTF-8.
    We need the some default character coding in Composer.

Tested 2000032206 nblb M15 Win32, MAC, and Linux build.

  
Related issue:Editor charset encoding menu needs UE implementation issue is filed in 7849.
nhotta- can you help to resolve this issue. 
brade- we may need your help.
Assignee: ftang → nhotta
How 4.x works? Does it have default compose charset?
No. It does not. It simply picks up the encoding of the parent page from which the
composer page is opened. By the way, this is one of the items we have on our preference
list and it is mentioned in my spec document, I believe.
Please see this spec document for Editor Charset related issues:

http://rocknroll/users/momoi/publish/seamonkey/5_0intleditorui.html

The section which addresses thi sproblem is called: Meaning of Character Encoding menu related actions:
and Item 1 is what this bug is about. We need a default charset for Browser and that should be used
for Composer. This bug can be made a duplicate of that bug.
Momoi san, what is the bug number you mentioned in your last comment?
I read the document mentioned but it does not mention about browser's default 
charset.
Is there a separate document for browser default charset?
Has that been implemented?
Currently, the Browser proposal includes an item called
"Fallback Encoding". We need to formalize this either
as a seprate item or make it visible when the menu 
customization is done. 

http://www.mozilla.org/projects/intl/uidocs/browsercharmenu.html#definitions

Look under the "Fallback Encoding" subsection.
Do we have a pref value available for the fallback encoding? If so, editor 
jsut need to use it for a new document instead of UTF-8.
Yes, it is:

intl.charset.default
Reassing to brade. 
Please cahnge to use the pref value "intl.charset.default" for a new document 
instead of "UTF-8".
Assignee: nhotta → brade
Target Milestone: --- → M15
Adding jab1
Keywords: jab1
I think this bug should go to fergus since "intl.charset.default"
will at least be a workaround for this problem for Beta 1.  

pref("intl.charset.default", "Shift_JIS");

It's not that we are saving into UTF-8 without this 
pref setting. We are right now assuming Latin 1 as the 
default encoding and so when these JPN charcters are saved,
we are using NCRs (i.e. Unicode values in decimal format.)

By setting the above pref, we get the right results we want 
at this point. The full machinery of savings including HTTP Meta-equiv
tag need to be implemnted accoring to Editor spec proposed.

So for this limited problem, I propose to make this into an
L10n bug. There is already an L10n bug for teh Browser default
charset and that bug, Bug 32301, will also take care of this
bug. Fergus, you can mark this bug a dupliacte of that one.

We will file a new bug for Edtior charset related UI implementation
based on the revised spec document.
Assignee: brade → fergus
Component: Internationalization → Localization
Target Milestone: M15 → M14


*** This bug has been marked as a duplicate of 32301 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified as dup.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.