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)
Core
DOM: Editor
Tracking
()
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.
~ - \ ~ ∥ ¢ £ ¬
Comment 1•26 years ago
|
||
assigning to Joe for debugging
Assignee: beppe → jfrancis
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → M18
Comment 2•26 years ago
|
||
cc'ing akkana. akkana, could this be an output problem?
Status: NEW → ASSIGNED
Comment 3•26 years ago
|
||
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.
| Assignee | ||
Comment 4•26 years ago
|
||
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.
| Assignee | ||
Comment 5•26 years ago
|
||
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).
Comment 6•26 years ago
|
||
agree - marking as invalid
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 7•26 years ago
|
||
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.
| Assignee | ||
Comment 8•26 years ago
|
||
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)?
| Reporter | ||
Comment 10•26 years ago
|
||
Yes, x8160 of shift_JIS is converted to ~.
Comment 11•26 years ago
|
||
I think the remaining problem is a duplicate of:
http://bugzilla.mozilla.org/show_bug.cgi?id=35166
| Reporter | ||
Comment 12•26 years ago
|
||
This problem is fixed in Build 2000101014.
| Reporter | ||
Comment 13•25 years ago
|
||
| Reporter | ||
Comment 14•25 years ago
|
||
This problem is reproduced
in Build 20001205
.
Comment 15•25 years ago
|
||
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 → ---
| Reporter | ||
Comment 16•25 years ago
|
||
No, Cyrillic characters are mapped to Shift_JIS code properly.
| Assignee | ||
Comment 17•25 years ago
|
||
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.
| Reporter | ||
Comment 18•25 years ago
|
||
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.
| Reporter | ||
Comment 20•25 years ago
|
||
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.
| Reporter | ||
Updated•25 years ago
|
Summary: Character that havs proper JIS code becomes to character reference. → Characters that have proper JIS code becomes to character reference.
Comment 21•25 years ago
|
||
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
| Assignee | ||
Comment 22•25 years ago
|
||
This might be related to bug 59679, reassign to nhotta.
Assignee: beppe → nhotta
Keywords: intl
Comment 23•25 years ago
|
||
add intl,nsbeta1 and remove M18
| Assignee | ||
Comment 24•25 years ago
|
||
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
Comment 25•25 years ago
|
||
ylong, please verify this one and mark verified-fixed...thanks!
| Reporter | ||
Comment 26•25 years ago
|
||
This problem is reproduced on Build 2001011720.
Windows 2000.
Comment 27•25 years ago
|
||
REOPENING per commments.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 28•25 years ago
|
||
ylong, could you try this with the latest build?
Comment 29•25 years ago
|
||
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 ~(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>
| Reporter | ||
Comment 30•25 years ago
|
||
| Reporter | ||
Comment 31•25 years ago
|
||
Yes, U+FF5E is saved normally, but character listed are converted to character
reference even in utf-8 encoding.
| Assignee | ||
Comment 32•25 years ago
|
||
That's probably a dup of bug 65324, reassign to jst.
Assignee: nhotta → jst
Status: REOPENED → NEW
Comment 33•25 years ago
|
||
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
| Assignee | ||
Comment 34•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•