Closed Bug 44374 Opened 26 years ago Closed 25 years ago

Characters that have proper JIS code becomes to character reference.

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 65324
mozilla0.9

People

(Reporter: hobbit_mak, Assigned: nhottanscp)

References

()

Details

(Keywords: intl)

Attachments

(2 files)

1. Edit page or URL. 2. Save it to local file. Then characters of some JIS code as below becomes to character reference. ~ - \ ~ ∥ ¢ £ ¬
assigning to Joe for debugging
Assignee: beppe → jfrancis
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → M18
cc'ing akkana. akkana, could this be an output problem?
Status: NEW → ASSIGNED
There was an email discussion yesterday regarding entity-izing in different charsets, which I didn't entirely follow because I hadn't heard of most of the charset codes and TLAs being discussed, and in any case I came in late. Cc'ing all the people on the email thread and hoping that someone who understands these things better will comment.
When I set a charset by "View->Character Coding->Multibyte->Japanese (Shift_JIS)" then I was able to save as Shift_JIS instead of NCR. There is also a menu item "File->Save As Charset..." so you can specify a charset to save.
So I think this bug is invalid because a proper charset needs to be selected by the user before saving a file. Japanese localized version will have Shift_JIS to be a default so the user does not have to explicitly set a charset if saving as Shift_JIS (bug 45348).
agree - marking as invalid
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
This problem is reproduced even if I set character encodeing explicitely. build 20000709 ~ is output. Other characters of Shift_JIS are output properly. So Mozilla must know correct encoding system of the page.
Yes, I see that when sending HTML mail. Is that 0x8160 in Shift_JIS? It could be a charset converter bug. Could you file a new bug for that specific problem (and assign to nhotta)?
verified in 8/2 build.
Status: RESOLVED → VERIFIED
Yes, x8160 of shift_JIS is converted to ~.
I think the remaining problem is a duplicate of: http://bugzilla.mozilla.org/show_bug.cgi?id=35166
This problem is fixed in Build 2000101014.
This problem is reproduced in Build 20001205 .
Well, the characters you mention as examples turn into NCRs such as "Ε" as opposed to an real Japanese coding of such characters. Now these characters are symbols,Greek and (possibly Cyrillic ones.) Naoki, what did we decide to do for them? Are we representing these as HTML 4 Character Entity References now even though they are part of JISX 0208 charset table? Temporarily re-opening this until we get the Mozilla spec settled. To clarify, these CERs are correct. The only issue is whether or not, they should not be reprented by Shift_JIS bytes.
Status: VERIFIED → REOPENED
QA Contact: sujay → momoi
Resolution: INVALID → ---
No, Cyrillic characters are mapped to Shift_JIS code properly.
Entities are generated as a fallback only when the conversion from unicode to the target charset fails. So I think something wrong in unicode -> ISO-2022-JP converter.
I converted attached file to utf-8 and edit it by Mozilla composer. Then save it as utf-8. Inb that file these characters are in character reference. Maybe unicode -> ISO-2022-JP converter is not related.
QA contact to ylong.
QA Contact: momoi → ylong
HTML 4.01 says as follows 4.3 Character references A given character encoding may not be able to express all characters of the document character set. For such encodings, or when hardware or software configurations do not allow users to input some document characters directly, authors may use SGML character references. Character references are a character encoding-independent mechanism for entering any character from the document character set.
Summary: Character that havs proper JIS code becomes to character reference. → Characters that have proper JIS code becomes to character reference.
I doubt I'm the right person to own this. Even if I am, I don't hav ethe time for it. Since I have no expertise on this issue, someone else should take it.
Assignee: jfrancis → beppe
Status: REOPENED → NEW
This might be related to bug 59679, reassign to nhotta.
Assignee: beppe → nhotta
Keywords: intl
add intl,nsbeta1 and remove M18
Keywords: nsbeta1
OS: Windows 2000 → All
Hardware: PC → All
Target Milestone: M18 → mozilla0.9
This is working now, I was able to save as ISO-2022-JP. Used RTM build win32.
Status: NEW → RESOLVED
Closed: 26 years ago → 25 years ago
Resolution: --- → FIXED
ylong, please verify this one and mark verified-fixed...thanks!
This problem is reproduced on Build 2001011720. Windows 2000.
REOPENING per commments.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
ylong, could you try this with the latest build?
When I save the url page to local file as iso-2022jp, Seems I didn't see character becomes reference code in web and HTML source on 01-24-2001 Mtrunk build on my WinME-ja. Here are some code lines about &#65374(FF5E) in the HTML file that I opened in text editor, you can see "FF5E" shows correctly. <th rowspan="3" abbr="01-33">01-33</th> <th rowspan="3" abbr="$B!A(B">$B!A(B</th> <td>U+FF5E</td> <td>Halfwidth and Fullwidth Forms</td> <td>Fullwidth Tilde</td>
Yes, U+FF5E is saved normally, but character listed are converted to character reference even in utf-8 encoding.
That's probably a dup of bug 65324, reassign to jst.
Assignee: nhotta → jst
Status: REOPENED → NEW
nhotta, since you're now working on bug 65324, could you look into this one too? If not give this back to me.
Assignee: jst → nhotta
Fixed, dup of 65324. *** This bug has been marked as a duplicate of 65324 ***
Status: NEW → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → DUPLICATE
verified in 2/13 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: